Improve type hints in nanoleaf lights (#162284)

This commit is contained in:
epenet
2026-02-05 11:44:54 +01:00
committed by GitHub
parent 06613746f9
commit bb1a2530f5
+1 -1
View File
@@ -85,7 +85,7 @@ class NanoleafLight(NanoleafEntity, LightEntity):
return self._nanoleaf.hue, self._nanoleaf.saturation
@property
def color_mode(self) -> ColorMode | None:
def color_mode(self) -> ColorMode:
"""Return the color mode of the light."""
# According to API docs, color mode is "ct", "effect" or "hs"
# https://forum.nanoleaf.me/docs/openapi#_4qgqrz96f44d