Skip to content

Commit

Permalink
Remove deprecated СOLOR_MODE_COLOR_TEMP constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Dec 11, 2024
1 parent 7a72078 commit a52fad9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/yandex_smart_home/capability_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
ATTR_RGBW_COLOR,
ATTR_RGBWW_COLOR,
ATTR_WHITE,
COLOR_MODE_COLOR_TEMP,
ColorMode,
LightEntityFeature,
color_temp_supported,
Expand Down Expand Up @@ -144,7 +143,7 @@ def get_description(self) -> None:

def get_value(self) -> int | None:
"""Return the current capability value."""
if self.state.attributes.get(ATTR_COLOR_MODE) == COLOR_MODE_COLOR_TEMP:
if self.state.attributes.get(ATTR_COLOR_MODE) == ColorMode.COLOR_TEMP:
return None

if self._rgb_color:
Expand Down

0 comments on commit a52fad9

Please sign in to comment.