From e61c1ffbc2731b9168edb5c343cb644ba83d95ca Mon Sep 17 00:00:00 2001 From: Brian Cribbs Date: Fri, 28 Apr 2017 13:25:15 -0400 Subject: [PATCH] fixing hound violations --- homeassistant/components/cover/mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/cover/mqtt.py b/homeassistant/components/cover/mqtt.py index caff1de4861..2be41ca3c82 100644 --- a/homeassistant/components/cover/mqtt.py +++ b/homeassistant/components/cover/mqtt.py @@ -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)