mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Optimize devolo light devices (#41053)
This commit is contained in:
parent
a81f4cf387
commit
ac256815f9
@ -77,4 +77,7 @@ class DevoloLightDeviceEntity(DevoloMultiLevelSwitchDeviceEntity, LightEntity):
|
|||||||
|
|
||||||
def turn_off(self, **kwargs) -> None:
|
def turn_off(self, **kwargs) -> None:
|
||||||
"""Turn device off."""
|
"""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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user