Skip to content

Commit

Permalink
Fix old state for RGBWW lights
Browse files Browse the repository at this point in the history
  • Loading branch information
Breina committed Aug 23, 2023
1 parent 0930631 commit 3a8350a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/artnet_led/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,8 @@ async def restore_state(self, old_state):

if old_state:
prev_vals = old_state.attributes.get('values')
self._vals = prev_vals
if len(prev_vals) == 6:
self._vals = prev_vals

prev_brightness = old_state.attributes.get('bright')
self._attr_brightness = prev_brightness
Expand Down

0 comments on commit 3a8350a

Please sign in to comment.