fixing hound violations

This commit is contained in:
Brian Cribbs 2017-04-28 13:25:15 -04:00
parent 6cfc1b6af8
commit e61c1ffbc2

View File

@ -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)