From 6800f4b6fd2d8052c4a93734b63e95a524aff20c Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Wed, 27 Jan 2021 09:12:24 +0100 Subject: [PATCH] Add temperature step size for generic_thermostat (#41972) --- homeassistant/components/generic_thermostat/climate.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/generic_thermostat/climate.py b/homeassistant/components/generic_thermostat/climate.py index 175ee8f1d5b..433e91104ad 100644 --- a/homeassistant/components/generic_thermostat/climate.py +++ b/homeassistant/components/generic_thermostat/climate.py @@ -276,6 +276,13 @@ class GenericThermostat(ClimateEntity, RestoreEntity): return self._temp_precision return super().precision + @property + def target_temperature_step(self): + """Return the supported step of target temperature.""" + # Since this integration does not yet have a step size parameter + # we have to re-use the precision as the step size for now. + return self.precision + @property def temperature_unit(self): """Return the unit of measurement."""