Fix light state on boot up (#68606)

Fixes: #68038
This commit is contained in:
Sebastian Muszynski 2022-03-29 09:57:30 +02:00 committed by GitHub
parent d7634d1cb1
commit 50b2ee8c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,7 @@ class XiaomiGatewayLight(XiaomiDevice, LightEntity):
return False
if value == 0:
if self._state:
self._state = False
self._state = False
return True
rgbhexstr = f"{value:x}"