Use UnitOfTemperature in climate entities [t-z] (#83129)

This commit is contained in:
epenet 2022-12-05 10:18:57 +01:00 committed by GitHub
parent ee5de654ab
commit c7a6b5983f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 44 additions and 44 deletions

View file

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