Add temperature step size for generic_thermostat (#41972)
parent
f387e833c3
commit
6800f4b6fd
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue