mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Set precision to tenths in Sensibo (#67297)
This commit is contained in:
parent
fc4cb743bd
commit
f2dabf4978
@ -29,6 +29,7 @@ from homeassistant.const import (
|
|||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
CONF_API_KEY,
|
CONF_API_KEY,
|
||||||
CONF_ID,
|
CONF_ID,
|
||||||
|
PRECISION_TENTHS,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT,
|
TEMP_FAHRENHEIT,
|
||||||
)
|
)
|
||||||
@ -144,6 +145,7 @@ class SensiboClimate(CoordinatorEntity, ClimateEntity):
|
|||||||
else TEMP_FAHRENHEIT
|
else TEMP_FAHRENHEIT
|
||||||
)
|
)
|
||||||
self._attr_supported_features = self.get_features()
|
self._attr_supported_features = self.get_features()
|
||||||
|
self._attr_precision = PRECISION_TENTHS
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, coordinator.data[device_id]["id"])},
|
identifiers={(DOMAIN, coordinator.data[device_id]["id"])},
|
||||||
name=coordinator.data[device_id]["name"],
|
name=coordinator.data[device_id]["name"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user