mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Add temperature step size for generic_thermostat (#41972)
This commit is contained in:
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…
x
Reference in New Issue
Block a user