From 098e28534bd7c76687117c53902ff8a8dfb4723f Mon Sep 17 00:00:00 2001 From: Brian Cribbs Date: Mon, 1 May 2017 13:34:34 -0400 Subject: [PATCH] fixing documentation --- homeassistant/components/cover/mqtt.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/cover/mqtt.py b/homeassistant/components/cover/mqtt.py index d95a88a2fa8..eca34062058 100644 --- a/homeassistant/components/cover/mqtt.py +++ b/homeassistant/components/cover/mqtt.py @@ -331,11 +331,14 @@ class MqttCover(CoverDevice): return position_percentage def find_in_range_from_percent(self, percentage): - """Find the adjusted value for 0-100% within the specified range.""" - # if the range is 80-180 and the percentage is 90 - # this method would determine the value to send on the topic - # by offsetting the max and min, getting the percentage value and - # returning the offset + """ + Find the adjusted value for 0-100% within the specified range. + + if the range is 80-180 and the percentage is 90 + this method would determine the value to send on the topic + by offsetting the max and min, getting the percentage value and + returning the offset + """ offset = self._tilt_min tilt_range = self._tilt_max - self._tilt_min