mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix brightness
This commit is contained in:
@@ -119,7 +119,7 @@ class MegaLight(LightEntity, BaseMegaEntity):
|
||||
return self._state == 'ON'
|
||||
|
||||
async def async_turn_on(self, brightness=None, **kwargs) -> None:
|
||||
brightness = brightness or self.brightness
|
||||
brightness = brightness or self.brightness or 255
|
||||
if self.dimmer and brightness == 0:
|
||||
cmd = 255
|
||||
elif self.dimmer:
|
||||
|
||||
Reference in New Issue
Block a user