From 13fe135e7fa2765ecdc8e92edb5d44a4a269cf02 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Mar 2026 18:04:56 +0100 Subject: [PATCH] Improve type hints in nexia climate (#164976) --- homeassistant/components/nexia/climate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index 1e698713935..bc36fc35bd8 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -199,12 +199,12 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): return self._thermostat.is_blower_active() @property - def current_temperature(self): + def current_temperature(self) -> int: """Return the current temperature.""" return self._zone.get_temperature() @property - def fan_mode(self): + def fan_mode(self) -> str | None: """Return the fan setting.""" return self._thermostat.get_fan_mode() @@ -275,14 +275,14 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): return None @property - def current_humidity(self): + def current_humidity(self) -> float | None: """Humidity indoors.""" if self._has_relative_humidity: return percent_conv(self._thermostat.get_relative_humidity()) return None @property - def target_temperature(self): + def target_temperature(self) -> int | None: """Temperature we try to reach.""" current_mode = self._zone.get_current_mode() @@ -293,7 +293,7 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): return None @property - def target_temperature_high(self): + def target_temperature_high(self) -> int | None: """Highest temperature we are trying to reach.""" current_mode = self._zone.get_current_mode() @@ -302,7 +302,7 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): return self._zone.get_cooling_setpoint() @property - def target_temperature_low(self): + def target_temperature_low(self) -> int | None: """Lowest temperature we are trying to reach.""" current_mode = self._zone.get_current_mode()