Fix missing brightness for Velbus entities (#62314)

* Fix #62169: missing brightness for Velbus-entities

* Use default implementation of supported_features

Co-authored-by: Thijs Walcarius <thijs.walcarius@ugent.be>
This commit is contained in:
Thijs Walcarius 2021-12-19 20:14:56 +01:00 committed by GitHub
parent 2bfcc5777d
commit f9e38cd08b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ class VelbusLight(VelbusEntity, LightEntity):
"""Representation of a Velbus light."""
_channel: VelbusDimmer
_attr_supported_feature = SUPPORT_BRIGHTNESS | SUPPORT_TRANSITION
_attr_supported_features = SUPPORT_BRIGHTNESS | SUPPORT_TRANSITION
@property
def is_on(self) -> bool:
@ -96,7 +96,7 @@ class VelbusButtonLight(VelbusEntity, LightEntity):
_channel: VelbusButton
_attr_entity_registry_enabled_default = False
_attr_supported_feature = SUPPORT_FLASH
_attr_supported_features = SUPPORT_FLASH
def __init__(self, channel: VelbusChannel) -> None:
"""Initialize the button light (led)."""