mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +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)
|
||||
|
||||
@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."""
|
||||
return SUPPORTED_COLOR_MODES
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user