Use UnitOfTemperature in climate entities [m-s] (#83131)
This commit is contained in:
parent
d3b35ca2a7
commit
8b867d612f
27 changed files with 82 additions and 74 deletions
|
@ -23,7 +23,7 @@ from homeassistant.const import (
|
|||
ATTR_TEMPERATURE,
|
||||
PRECISION_HALVES,
|
||||
STATE_OFF,
|
||||
TEMP_CELSIUS,
|
||||
UnitOfTemperature,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers import config_validation as cv, entity_platform
|
||||
|
@ -134,7 +134,7 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
|
|||
_attr_preset_modes = SUPPORT_PRESET
|
||||
_attr_supported_features = SUPPORT_FLAGS
|
||||
_attr_target_temperature_step = PRECISION_HALVES
|
||||
_attr_temperature_unit = TEMP_CELSIUS
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
|
||||
def __init__(self, netatmo_device: NetatmoRoom) -> None:
|
||||
"""Initialize the sensor."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue