Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions homeassistant/components/velbus/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
ATTR_BRIGHTNESS,
ATTR_FLASH,
ATTR_TRANSITION,
COLOR_MODE_BRIGHTNESS,
COLOR_MODE_ONOFF,
FLASH_LONG,
FLASH_SHORT,
SUPPORT_BRIGHTNESS,
SUPPORT_FLASH,
SUPPORT_TRANSITION,
LightEntity,
Expand Down Expand Up @@ -49,7 +50,9 @@ class VelbusLight(VelbusEntity, LightEntity):
"""Representation of a Velbus light."""

_channel: VelbusDimmer
_attr_supported_features = SUPPORT_BRIGHTNESS | SUPPORT_TRANSITION
_attr_color_mode = COLOR_MODE_BRIGHTNESS
_attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS}
_attr_supported_features = SUPPORT_TRANSITION

@property
def is_on(self) -> bool:
Expand Down Expand Up @@ -97,6 +100,8 @@ class VelbusButtonLight(VelbusEntity, LightEntity):
_channel: VelbusButton
_attr_entity_registry_enabled_default = False
_attr_entity_category = EntityCategory.CONFIG
_attr_color_mode = COLOR_MODE_ONOFF
_attr_supported_color_modes = {COLOR_MODE_ONOFF}
_attr_supported_features = SUPPORT_FLASH

def __init__(self, channel: VelbusChannel) -> None:
Expand Down