Skip to content

Commit 3c8bf9b

Browse files
Tobias FriedrichBreina
authored andcommitted
Fix fixed light entity metadata
1 parent 7c383af commit 3c8bf9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

custom_components/artnet_led/light.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def __init__(self, name, unique_id: str, **kwargs):
254254
self._channel_size = CHANNEL_SIZE[kwargs[CONF_CHANNEL_SIZE]]
255255
self._color_mode = kwargs[CONF_DEVICE_TYPE]
256256
self._vals = []
257-
self._features = 0
257+
self._features = LightEntityFeature(0)
258258
self._supported_color_modes = set()
259259
self._channel_last_update = 0
260260
self._channel_width = 0
@@ -450,6 +450,7 @@ class DmxFixed(DmxBaseLight):
450450
def __init__(self, **kwargs):
451451
super().__init__(**kwargs)
452452
self._color_mode = ColorMode.ONOFF
453+
self._supported_color_modes.add(ColorMode.ONOFF)
453454
self._channel_setup = kwargs.get(CONF_CHANNEL_SETUP) or [255]
454455
self._channel_width = len(self._channel_setup)
455456

0 commit comments

Comments
 (0)