mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
use change light level to avoid variable ramp speeds (#6860)
This commit is contained in:
parent
72db4a80dd
commit
5bb201c7fc
@ -175,7 +175,7 @@ class InsteonLocalDimmerDevice(Light):
|
|||||||
if ATTR_BRIGHTNESS in kwargs:
|
if ATTR_BRIGHTNESS in kwargs:
|
||||||
brightness = int(kwargs[ATTR_BRIGHTNESS]) / 255 * 100
|
brightness = int(kwargs[ATTR_BRIGHTNESS]) / 255 * 100
|
||||||
|
|
||||||
self.node.on(brightness)
|
self.node.change_level(brightness)
|
||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
"""Turn device off."""
|
"""Turn device off."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user