Switch Adax to ClimateEntityFeature (#69286)
This commit is contained in:
parent
9ef67c4b4c
commit
04dd7c3f7c
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ from homeassistant.components.climate import ClimateEntity
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
HVAC_MODE_HEAT,
|
HVAC_MODE_HEAT,
|
||||||
HVAC_MODE_OFF,
|
HVAC_MODE_OFF,
|
||||||
SUPPORT_TARGET_TEMPERATURE,
|
ClimateEntityFeature,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
@ -68,7 +68,7 @@ class AdaxDevice(ClimateEntity):
|
||||||
_attr_hvac_modes = [HVAC_MODE_HEAT, HVAC_MODE_OFF]
|
_attr_hvac_modes = [HVAC_MODE_HEAT, HVAC_MODE_OFF]
|
||||||
_attr_max_temp = 35
|
_attr_max_temp = 35
|
||||||
_attr_min_temp = 5
|
_attr_min_temp = 5
|
||||||
_attr_supported_features = SUPPORT_TARGET_TEMPERATURE
|
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
_attr_target_temperature_step = PRECISION_WHOLE
|
_attr_target_temperature_step = PRECISION_WHOLE
|
||||||
_attr_temperature_unit = TEMP_CELSIUS
|
_attr_temperature_unit = TEMP_CELSIUS
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ class LocalAdaxDevice(ClimateEntity):
|
||||||
_attr_hvac_mode = HVAC_MODE_HEAT
|
_attr_hvac_mode = HVAC_MODE_HEAT
|
||||||
_attr_max_temp = 35
|
_attr_max_temp = 35
|
||||||
_attr_min_temp = 5
|
_attr_min_temp = 5
|
||||||
_attr_supported_features = SUPPORT_TARGET_TEMPERATURE
|
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
_attr_target_temperature_step = PRECISION_WHOLE
|
_attr_target_temperature_step = PRECISION_WHOLE
|
||||||
_attr_temperature_unit = TEMP_CELSIUS
|
_attr_temperature_unit = TEMP_CELSIUS
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue