Better detection for brightness support in fibaro light (#71615)
This commit is contained in:
parent
88c49f034a
commit
1e4690626f
1 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,10 @@ class FibaroLight(FibaroDevice, LightEntity):
|
|||
or "RGBW" in fibaro_device.type
|
||||
or "rgbw" in fibaro_device.type
|
||||
)
|
||||
supports_dimming = "levelChange" in fibaro_device.interfaces
|
||||
supports_dimming = (
|
||||
"levelChange" in fibaro_device.interfaces
|
||||
and "setValue" in fibaro_device.actions
|
||||
)
|
||||
|
||||
if supports_color and supports_white_v:
|
||||
self._attr_supported_color_modes = {ColorMode.RGBW}
|
||||
|
|
Loading…
Add table
Reference in a new issue