mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Fix round typing [mqtt] (#82629)
This commit is contained in:
parent
ba18571cbe
commit
c0425619e2
@ -720,8 +720,8 @@ class MqttCover(MqttEntity, CoverEntity):
|
|||||||
"""Find the 0-100% value within the specified range."""
|
"""Find the 0-100% value within the specified range."""
|
||||||
# the range of motion as defined by the min max values
|
# the range of motion as defined by the min max values
|
||||||
if range_type == COVER_PAYLOAD:
|
if range_type == COVER_PAYLOAD:
|
||||||
max_range = self._config[CONF_POSITION_OPEN]
|
max_range: int = self._config[CONF_POSITION_OPEN]
|
||||||
min_range = self._config[CONF_POSITION_CLOSED]
|
min_range: int = self._config[CONF_POSITION_CLOSED]
|
||||||
else:
|
else:
|
||||||
max_range = self._config[CONF_TILT_MAX]
|
max_range = self._config[CONF_TILT_MAX]
|
||||||
min_range = self._config[CONF_TILT_MIN]
|
min_range = self._config[CONF_TILT_MIN]
|
||||||
@ -748,8 +748,8 @@ class MqttCover(MqttEntity, CoverEntity):
|
|||||||
returning the offset
|
returning the offset
|
||||||
"""
|
"""
|
||||||
if range_type == COVER_PAYLOAD:
|
if range_type == COVER_PAYLOAD:
|
||||||
max_range = self._config[CONF_POSITION_OPEN]
|
max_range: int = self._config[CONF_POSITION_OPEN]
|
||||||
min_range = self._config[CONF_POSITION_CLOSED]
|
min_range: int = self._config[CONF_POSITION_CLOSED]
|
||||||
else:
|
else:
|
||||||
max_range = self._config[CONF_TILT_MAX]
|
max_range = self._config[CONF_TILT_MAX]
|
||||||
min_range = self._config[CONF_TILT_MIN]
|
min_range = self._config[CONF_TILT_MIN]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user