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
|
@ -19,7 +19,7 @@ from homeassistant.const import (
|
|||
CONF_PASSWORD,
|
||||
CONF_USERNAME,
|
||||
PRECISION_TENTHS,
|
||||
TEMP_FAHRENHEIT,
|
||||
UnitOfTemperature,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
@ -59,7 +59,7 @@ class ProliphixThermostat(ClimateEntity):
|
|||
|
||||
_attr_precision = PRECISION_TENTHS
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_attr_temperature_unit = TEMP_FAHRENHEIT
|
||||
_attr_temperature_unit = UnitOfTemperature.FAHRENHEIT
|
||||
|
||||
def __init__(self, pdp):
|
||||
"""Initialize the thermostat."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue