From 618687ea05bd792acd09416a23d3184e758c0790 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Mar 2026 18:04:24 +0100 Subject: [PATCH] Improve type hints in nuheat climate (#164975) --- homeassistant/components/nuheat/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/nuheat/climate.py b/homeassistant/components/nuheat/climate.py index d0ea35c2e8b..e666e4be0cd 100644 --- a/homeassistant/components/nuheat/climate.py +++ b/homeassistant/components/nuheat/climate.py @@ -99,7 +99,7 @@ class NuHeatThermostat(CoordinatorEntity[NuHeatCoordinator], ClimateEntity): return UnitOfTemperature.FAHRENHEIT @property - def current_temperature(self): + def current_temperature(self) -> int | None: """Return the current temperature.""" if self._temperature_unit == "C": return self._thermostat.celsius @@ -147,7 +147,7 @@ class NuHeatThermostat(CoordinatorEntity[NuHeatCoordinator], ClimateEntity): return self._thermostat.max_fahrenheit @property - def target_temperature(self): + def target_temperature(self) -> int: """Return the currently programmed temperature.""" if self._temperature_unit == "C": return nuheat_to_celsius(self._target_temperature)