use change light level to avoid variable ramp speeds (#6860)
This commit is contained in:
1 parent
72db4a80dd
commit
5bb201c7fc
1 file changed
+1
-1
@@ -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."""
|
||||||
|
|||||||
Reference in new issue
Block a user