Fix round typing [mqtt] (#82629)
This commit is contained in:
parent
ba18571cbe
commit
c0425619e2
1 changed files with 4 additions and 4 deletions
|
@ -720,8 +720,8 @@ class MqttCover(MqttEntity, CoverEntity):
|
|||
"""Find the 0-100% value within the specified range."""
|
||||
# the range of motion as defined by the min max values
|
||||
if range_type == COVER_PAYLOAD:
|
||||
max_range = self._config[CONF_POSITION_OPEN]
|
||||
min_range = self._config[CONF_POSITION_CLOSED]
|
||||
max_range: int = self._config[CONF_POSITION_OPEN]
|
||||
min_range: int = self._config[CONF_POSITION_CLOSED]
|
||||
else:
|
||||
max_range = self._config[CONF_TILT_MAX]
|
||||
min_range = self._config[CONF_TILT_MIN]
|
||||
|
@ -748,8 +748,8 @@ class MqttCover(MqttEntity, CoverEntity):
|
|||
returning the offset
|
||||
"""
|
||||
if range_type == COVER_PAYLOAD:
|
||||
max_range = self._config[CONF_POSITION_OPEN]
|
||||
min_range = self._config[CONF_POSITION_CLOSED]
|
||||
max_range: int = self._config[CONF_POSITION_OPEN]
|
||||
min_range: int = self._config[CONF_POSITION_CLOSED]
|
||||
else:
|
||||
max_range = self._config[CONF_TILT_MAX]
|
||||
min_range = self._config[CONF_TILT_MIN]
|
||||
|
|
Loading…
Add table
Reference in a new issue