Add missing availability change (#157096)

This commit is contained in:
Andre Lengwenus
2025-11-23 12:33:28 +01:00
committed by GitHub
parent d97998e2e1
commit 2b2bb79505

View File

@@ -163,7 +163,7 @@ class LcnOutputLight(LcnEntity, LightEntity):
or input_obj.get_output_id() != self.output.value
):
return
self._attr_available = True
percent = input_obj.get_percent()
self._attr_brightness = value_to_brightness(BRIGHTNESS_SCALE, percent)
self._attr_is_on = bool(percent)