diff --git a/homeassistant/components/velbus/climate.py b/homeassistant/components/velbus/climate.py index 886d200028b..18e01d3ae87 100644 --- a/homeassistant/components/velbus/climate.py +++ b/homeassistant/components/velbus/climate.py @@ -5,8 +5,8 @@ from typing import Any from velbusaio.channels import Temperature as VelbusTemp -from homeassistant.components.climate import ClimateEntity, ClimateEntityFeature -from homeassistant.components.climate.const import HVAC_MODE_HEAT +from homeassistant.components.climate import ClimateEntity +from homeassistant.components.climate.const import ClimateEntityFeature, HVACMode from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS from homeassistant.core import HomeAssistant @@ -38,8 +38,8 @@ class VelbusClimate(VelbusEntity, ClimateEntity): ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE ) _attr_temperature_unit = TEMP_CELSIUS - _attr_hvac_mode = HVAC_MODE_HEAT - _attr_hvac_modes = [HVAC_MODE_HEAT] + _attr_hvac_mode = HVACMode.HEAT + _attr_hvac_modes = [HVACMode.HEAT] _attr_preset_modes = list(PRESET_MODES) @property