Collapse supported features list in Deconz (#99233)
* Use shorthand attributes for Deconz * revert changes
This commit is contained in:
parent
cc9f0aaf80
commit
99a65fb45b
3 changed files with 16 additions and 16 deletions
|
@ -154,8 +154,9 @@ class DeconzBaseLight(DeconzDevice[_LightDeviceT], LightEntity):
|
|||
self._attr_supported_color_modes.add(ColorMode.ONOFF)
|
||||
|
||||
if device.brightness is not None:
|
||||
self._attr_supported_features |= LightEntityFeature.FLASH
|
||||
self._attr_supported_features |= LightEntityFeature.TRANSITION
|
||||
self._attr_supported_features |= (
|
||||
LightEntityFeature.FLASH | LightEntityFeature.TRANSITION
|
||||
)
|
||||
|
||||
if device.effect is not None:
|
||||
self._attr_supported_features |= LightEntityFeature.EFFECT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue