Fix shelly duo scene restore (#67871)

This commit is contained in:
Shay Levy 2022-03-08 19:56:57 +02:00 committed by GitHub
parent 7323ad2799
commit 98256746d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,7 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity):
ATTR_RGBW_COLOR ATTR_RGBW_COLOR
] ]
if ATTR_EFFECT in kwargs: if ATTR_EFFECT in kwargs and ATTR_COLOR_TEMP not in kwargs:
# Color effect change - used only in color mode, switch device mode to color # Color effect change - used only in color mode, switch device mode to color
set_mode = "color" set_mode = "color"
if self.wrapper.model == "SHBLB-1": if self.wrapper.model == "SHBLB-1":