Use UnitOfTemperature in climate entities [t-z] (#83129)
This commit is contained in:
parent
ee5de654ab
commit
c7a6b5983f
14 changed files with 44 additions and 44 deletions
|
@ -27,7 +27,7 @@ from homeassistant.const import (
|
|||
ATTR_TEMPERATURE,
|
||||
PRECISION_TENTHS,
|
||||
PRECISION_WHOLE,
|
||||
TEMP_CELSIUS,
|
||||
UnitOfTemperature,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_platform
|
||||
|
@ -147,7 +147,7 @@ class ViCareClimate(ClimateEntity):
|
|||
_attr_supported_features = (
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
|
||||
)
|
||||
_attr_temperature_unit = TEMP_CELSIUS
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
|
||||
def __init__(self, name, api, circuit, device_config, heating_type):
|
||||
"""Initialize the climate device."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue