Improve type hints in tradfri lights (#162287)

This commit is contained in:
epenet
2026-02-05 11:51:34 +01:00
committed by GitHub
parent 2105c6b177
commit 94456b5bc3

View File

@@ -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