diff --git a/homeassistant/components/honeywell/climate.py b/homeassistant/components/honeywell/climate.py index f8c07de7184..9a17f155f3b 100644 --- a/homeassistant/components/honeywell/climate.py +++ b/homeassistant/components/honeywell/climate.py @@ -14,6 +14,8 @@ from homeassistant.components.climate.const import ( CURRENT_HVAC_FAN, CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, + DEFAULT_MAX_TEMP, + DEFAULT_MIN_TEMP, FAN_AUTO, FAN_DIFFUSE, FAN_ON, @@ -144,7 +146,7 @@ class HoneywellUSThermostat(ClimateEntity): @property def extra_state_attributes(self) -> dict[str, Any]: """Return the device specific state attributes.""" - data = {} + data: dict[str, Any] = {} data[ATTR_FAN_ACTION] = "running" if self._device.fan_running else "idle" data[ATTR_PERMANENT_HOLD] = self._is_permanent_hold() if self._device.raw_dr_data: @@ -158,7 +160,7 @@ class HoneywellUSThermostat(ClimateEntity): return self._device.raw_ui_data["CoolLowerSetptLimit"] if self.hvac_mode == HVAC_MODE_HEAT: return self._device.raw_ui_data["HeatLowerSetptLimit"] - return None + return DEFAULT_MIN_TEMP @property def max_temp(self) -> float: @@ -167,7 +169,7 @@ class HoneywellUSThermostat(ClimateEntity): return self._device.raw_ui_data["CoolUpperSetptLimit"] if self.hvac_mode in [HVAC_MODE_HEAT, HVAC_MODE_HEAT_COOL]: return self._device.raw_ui_data["HeatUpperSetptLimit"] - return None + return DEFAULT_MAX_TEMP @property def current_humidity(self) -> int | None: diff --git a/mypy.ini b/mypy.ini index 9c98db3ca10..35eea971bcd 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2698,9 +2698,6 @@ ignore_errors = true [mypy-homeassistant.components.home_plus_control.api] ignore_errors = true -[mypy-homeassistant.components.honeywell.climate] -ignore_errors = true - [mypy-homeassistant.components.icloud] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index d58406f67f9..8bbbe0703a4 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -60,7 +60,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.here_travel_time.sensor", "homeassistant.components.home_plus_control", "homeassistant.components.home_plus_control.api", - "homeassistant.components.honeywell.climate", "homeassistant.components.icloud", "homeassistant.components.icloud.account", "homeassistant.components.icloud.device_tracker",