mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Add temperature step size for generic_thermostat (#41972)
This commit is contained in:
@@ -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."""
|
||||
|
Reference in New Issue
Block a user