Skip to content

Commit 2d6e2a1

Browse files
authored
- fix: Change supported color modes to ONOFF (#171)
Fixes [HA Core 2025.3 Warning: HASPLight does not report a color mode #161
1 parent bc6690c commit 2d6e2a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

custom_components/openhasp/light.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ async def async_setup_entry(
106106
class HASPLight(HASPToggleEntity, LightEntity):
107107
"""Representation of openHASP Light."""
108108

109-
_attr_supported_color_modes = {ColorMode.BRIGHTNESS}
109+
_attr_color_mode = ColorMode.ONOFF
110+
_attr_supported_color_modes = {ColorMode.ONOFF}
110111

111112
def __init__(self, name, hwid, topic, gpio):
112113
"""Initialize the light."""

0 commit comments

Comments
 (0)