Skip to content

Commit

Permalink
add check for color transition to add SUPPORT_TRANSITON supported fea…
Browse files Browse the repository at this point in the history
…tures
  • Loading branch information
firstof9 committed Jun 28, 2021
1 parent 6ca27f7 commit 17b46e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/zwave_js/light.py
Expand Up @@ -128,7 +128,10 @@ def __init__(

# Entity class attributes
self._attr_supported_features = 0
if self._dimming_duration is not None:
if (
self._dimming_duration is not None
or self._color_transition_duration is not None
):
self._attr_supported_features |= SUPPORT_TRANSITION

@callback
Expand Down

0 comments on commit 17b46e8

Please sign in to comment.