mirror of
https://github.com/home-assistant/core.git
synced 2026-02-04 06:15:47 +01:00
Improve elgato light type hints (#161771)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user