Use UnitOfTemperature in climate entities [a-f] (#83125)
This commit is contained in:
parent
aace084931
commit
44d3f2192c
20 changed files with 53 additions and 54 deletions
|
@ -29,7 +29,7 @@ from homeassistant.const import (
|
|||
ATTR_TEMPERATURE,
|
||||
CONF_PASSWORD,
|
||||
CONF_USERNAME,
|
||||
TEMP_CELSIUS,
|
||||
UnitOfTemperature,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
@ -82,7 +82,7 @@ class EphEmberThermostat(ClimateEntity):
|
|||
"""Representation of a EphEmber thermostat."""
|
||||
|
||||
_attr_hvac_modes = OPERATION_LIST
|
||||
_attr_temperature_unit = TEMP_CELSIUS
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
|
||||
def __init__(self, ember, zone):
|
||||
"""Initialize the thermostat."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue