mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +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
|
||||
# brightness.
|
||||
brightness = (self._brightness / 255) * 99
|
||||
brightness = int((self._brightness / 255) * 99)
|
||||
|
||||
if self._value.node.set_dimmer(self._value.value_id, brightness):
|
||||
self._state = STATE_ON
|
||||
|
Loading…
x
Reference in New Issue
Block a user