mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
ZwaveDimmer turn_on brightness changed from float to integer
This commit is contained in:
parent
bb658412c4
commit
59dc8da365
@ -101,7 +101,7 @@ class ZwaveDimmer(ZWaveDeviceEntity, Light):
|
|||||||
|
|
||||||
# Zwave multilevel switches use a range of [0, 99] to control
|
# Zwave multilevel switches use a range of [0, 99] to control
|
||||||
# brightness.
|
# brightness.
|
||||||
brightness = (self._brightness / 255) * 99
|
brightness = int((self._brightness / 255) * 99)
|
||||||
|
|
||||||
if self._value.node.set_dimmer(self._value.value_id, brightness):
|
if self._value.node.set_dimmer(self._value.value_id, brightness):
|
||||||
self._state = STATE_ON
|
self._state = STATE_ON
|
||||||
|
Loading…
x
Reference in New Issue
Block a user