Collapse supported features list in Deconz (#99233)

* Use shorthand attributes for Deconz

* revert changes
This commit is contained in:
Joost Lekkerkerker 2023-08-30 23:57:23 +02:00 committed by GitHub
parent cc9f0aaf80
commit 99a65fb45b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 16 deletions

View file

@ -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