mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix some issues with brightness after restart
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
"@andvikt"
|
||||
],
|
||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
||||
"version": "v1.0.7"
|
||||
"version": "v1.0.8"
|
||||
}
|
||||
Reference in New Issue
Block a user