mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
fixing hound violations
This commit is contained in:
parent
6cfc1b6af8
commit
e61c1ffbc2
@ -277,7 +277,7 @@ class MqttCover(CoverDevice):
|
||||
if ATTR_TILT_POSITION in kwargs:
|
||||
position = float(kwargs[ATTR_TILT_POSITION])
|
||||
|
||||
#The position needs to be between min and max
|
||||
# The position needs to be between min and max
|
||||
tilt_range = self._tilt_max - self._tilt_min
|
||||
percentage = position / 100.0
|
||||
level = round(tilt_range * percentage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user