mirror of
https://github.com/home-assistant/core.git
synced 2026-02-15 07:36:16 +00:00
Improve type hints in nanoleaf lights (#162284)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user