From c0425619e2c31657ed421324f25a8ac4b2bae03c Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Thu, 24 Nov 2022 14:39:01 +0100 Subject: [PATCH] Fix round typing [mqtt] (#82629) --- homeassistant/components/mqtt/cover.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/mqtt/cover.py b/homeassistant/components/mqtt/cover.py index 533698d91b3..4d230c20ae2 100644 --- a/homeassistant/components/mqtt/cover.py +++ b/homeassistant/components/mqtt/cover.py @@ -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]