mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 17:31:15 -04:00
Optimize devolo light devices (#41053)
This commit is contained in:
@@ -77,4 +77,7 @@ class DevoloLightDeviceEntity(DevoloMultiLevelSwitchDeviceEntity, LightEntity):
|
||||
|
||||
def turn_off(self, **kwargs) -> None:
|
||||
"""Turn device off."""
|
||||
self._multi_level_switch_property.set(0)
|
||||
if self._binary_switch_property is not None:
|
||||
self._binary_switch_property.set(False)
|
||||
else:
|
||||
self._multi_level_switch_property.set(0)
|
||||
|
||||
Reference in New Issue
Block a user