Improve elgato light type hints (#161771)

This commit is contained in:
epenet
2026-01-28 12:51:29 +01:00
committed by GitHub
parent 0203f6e6f1
commit 1c1a99e5ae

View File

@@ -85,7 +85,7 @@ class ElgatoLight(ElgatoEntity, LightEntity):
return color_util.color_temperature_mired_to_kelvin(mired_temperature)
@property
def color_mode(self) -> str | None:
def color_mode(self) -> ColorMode:
"""Return the color mode of the light."""
if self.coordinator.data.state.hue is not None:
return ColorMode.HS