mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Fix color_mode property in fritzbox light (#70965)
This commit is contained in:
parent
db3eb26c74
commit
13d67747cb
@ -118,7 +118,14 @@ class FritzboxLight(FritzBoxEntity, LightEntity):
|
|||||||
return color.color_temperature_kelvin_to_mired(kelvin)
|
return color.color_temperature_kelvin_to_mired(kelvin)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def supported_color_modes(self) -> set:
|
def color_mode(self) -> ColorMode:
|
||||||
|
"""Return the color mode of the light."""
|
||||||
|
if self.device.color_mode == COLOR_MODE:
|
||||||
|
return ColorMode.HS
|
||||||
|
return ColorMode.COLOR_TEMP
|
||||||
|
|
||||||
|
@property
|
||||||
|
def supported_color_modes(self) -> set[ColorMode]:
|
||||||
"""Flag supported color modes."""
|
"""Flag supported color modes."""
|
||||||
return SUPPORTED_COLOR_MODES
|
return SUPPORTED_COLOR_MODES
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user