Skip to content

Commit c644eaa

Browse files
authored
Merge pull request #1743 from Antonio112009/fix/light-colorB-missing-in-params
Fix missing 'in params' check for colorB in light.py
2 parents 9c9ea4f + 7951c74 commit c644eaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_components/sonoff/light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def set_state(self, params: dict):
361361

362362
if "bright" in params:
363363
self._attr_brightness = conv(params["bright"], 1, 100, 1, 255)
364-
if "colorR" in params and "colorG" in params and "colorB":
364+
if "colorR" in params and "colorG" in params and "colorB" in params:
365365
self._attr_rgb_color = (
366366
params["colorR"],
367367
params["colorG"],

0 commit comments

Comments
 (0)