Skip to content

suggested fix for HA2025 deprecation warnings #1168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TermeHansen
Copy link

I have tried to update the code without diving to deep in to it.

Basically I just updated as suggested by the warnings in the HA log and keeping the naming in the supported set....

@MrEbbinghaus
Copy link
Contributor

Resolves: #1144

and ATTR_COLOR_TEMP_KELVIN in service_data
):
# ATTR_COLOR_TEMP and ATTR_COLOR_TEMP_KELVIN are mutually exclusive
del service_data[ATTR_COLOR_TEMP]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can this code be deleted?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ATTR_COLOR_TEMP is now deprecated and services are now using only ATTR_COLOR_TEMP_KELVIN. Therefore it is not required anymore.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context: ATTR_COLOR_TEMP_KELVIN was added and ATTR_COLOR_TEMP deprecated in 2022.11 (see home-assistant/core#79591)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@basnijholt can we get this, #1207 and #1159 merged? Everything seems to be working properly on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants