Add temperature step size for generic_thermostat (#41972)

This commit is contained in:
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

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