Use UnitOfTemperature in climate entities [g-l] (#83127)

* Use UnitOfTemperature in climate entities [g-l]

* Adjust gree

* Adjust honeywell
This commit is contained in:
epenet 2022-12-05 10:42:24 +01:00 committed by GitHub
parent 40d337479e
commit 68e454712d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 60 additions and 71 deletions

View file

@ -10,7 +10,7 @@ from homeassistant.components.climate import (
HVACMode,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
@ -51,7 +51,7 @@ class IntellifireClimate(IntellifireEntity, ClimateEntity):
_attr_max_temp = 37
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
_attr_target_temperature_step = 1.0
_attr_temperature_unit = TEMP_CELSIUS
_attr_temperature_unit = UnitOfTemperature.CELSIUS
last_temp = DEFAULT_THERMOSTAT_TEMP
def __init__(