Set precision to tenths in Sensibo (#67297)

This commit is contained in:
G Johansson 2022-03-01 07:02:27 +01:00 committed by GitHub
parent fc4cb743bd
commit f2dabf4978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ from homeassistant.const import (
ATTR_TEMPERATURE,
CONF_API_KEY,
CONF_ID,
PRECISION_TENTHS,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
)
@ -144,6 +145,7 @@ class SensiboClimate(CoordinatorEntity, ClimateEntity):
else TEMP_FAHRENHEIT
)
self._attr_supported_features = self.get_features()
self._attr_precision = PRECISION_TENTHS
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, coordinator.data[device_id]["id"])},
name=coordinator.data[device_id]["name"],