mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 09:03:13 +01:00
Improve deconz light type hints (#161769)
This commit is contained in:
@@ -244,7 +244,7 @@ class DeconzBaseLight[_LightDeviceT: Group | Light](
|
||||
self._attr_effect_list = XMAS_LIGHT_EFFECTS
|
||||
|
||||
@property
|
||||
def color_mode(self) -> str | None:
|
||||
def color_mode(self) -> ColorMode:
|
||||
"""Return the color mode of the light."""
|
||||
if self._device.color_mode in DECONZ_TO_COLOR_MODE:
|
||||
color_mode = DECONZ_TO_COLOR_MODE[self._device.color_mode]
|
||||
|
||||
Reference in New Issue
Block a user