Improve hue light type hints (#161766)

This commit is contained in:
epenet
2026-01-28 12:50:57 +01:00
committed by GitHub
parent 66612f97ec
commit 0203f6e6f1
2 changed files with 2 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ class HueLight(CoordinatorEntity, LightEntity):
return hue_brightness_to_hass(bri)
@property
def color_mode(self) -> str:
def color_mode(self) -> ColorMode:
"""Return the color mode of the light."""
if self._fixed_color_mode:
return self._fixed_color_mode

View File

@@ -231,7 +231,7 @@ class GroupedHueLight(HueBaseEntity, LightEntity):
@callback
def _update_values(self) -> None:
"""Set base values from underlying lights of a group."""
supported_color_modes: set[ColorMode | str] = set()
supported_color_modes: set[ColorMode] = set()
lights_with_color_support = 0
lights_with_color_temp_support = 0
lights_with_dimming_support = 0