fix some issues with brightness after restart

This commit is contained in:
Andrey committed 2021-07-29 21:30:41 +03:00
1 parent 87492be38f
commit 54f1ebeda3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -421,7 +421,7 @@ class MegaOutPort(MegaPushEntity):
self._last_called = time.time()
if not self.dimmer:
transition = None
if not self.is_on:
if not self.is_on and (brightness is None or brightness == 0):
brightness = self._restore_brightness
brightness = brightness or self.brightness or 255
_prev = safe_int(self.brightness) or 0
+1 -1
View File
@@ -15,5 +15,5 @@
"@andvikt"
],
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
"version": "v1.0.7"
"version": "v1.0.8"
}