fix some issues with brightness after restart

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

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

View File

@@ -15,5 +15,5 @@
"@andvikt"
],
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
"version": "v1.0.7"
"version": "v1.0.8"
}