Add temperature step size for generic_thermostat (#41972)

pull/45600/head
Philip Allgaier 2021-01-27 09:12:24 +01:00 committed by GitHub
parent f387e833c3
commit 6800f4b6fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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."""