mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 05:06:13 +01:00
Improve hue light type hints (#161766)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user