mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 10:08:23 +00:00
fixing documentation
This commit is contained in:
parent
1ba4435693
commit
0c94df9fcf
@ -329,11 +329,14 @@ class MqttCover(CoverDevice):
|
|||||||
return position_percentage
|
return position_percentage
|
||||||
|
|
||||||
def find_in_range_from_percent(self, 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
|
Find the adjusted value for 0-100% within the specified range.
|
||||||
# this method would determine the value to send on the topic
|
|
||||||
# by offsetting the max and min, getting the percentage value and
|
if the range is 80-180 and the percentage is 90
|
||||||
# returning the offset
|
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
|
offset = self._tilt_min
|
||||||
tilt_range = self._tilt_max - self._tilt_min
|
tilt_range = self._tilt_max - self._tilt_min
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user