mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
fixing hound violations
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user