mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 07:05:48 +01:00
Improve type hints in tradfri lights (#162287)
This commit is contained in:
@@ -110,7 +110,7 @@ class TradfriLight(TradfriBaseEntity, LightEntity):
|
||||
return cast(bool, self._device_data.state)
|
||||
|
||||
@property
|
||||
def color_mode(self) -> ColorMode | None:
|
||||
def color_mode(self) -> ColorMode:
|
||||
"""Return the color mode of the light."""
|
||||
if self._fixed_color_mode:
|
||||
return self._fixed_color_mode
|
||||
|
||||
Reference in New Issue
Block a user