From 21b1667de9c38edf43f4ce73d50caab194780361 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 14 May 2022 01:57:19 +0200 Subject: [PATCH] Adjust Fan Modes in insteon (#71804) --- homeassistant/components/insteon/climate.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/insteon/climate.py b/homeassistant/components/insteon/climate.py index 833180583e2..97e21a02f6f 100644 --- a/homeassistant/components/insteon/climate.py +++ b/homeassistant/components/insteon/climate.py @@ -9,8 +9,7 @@ from homeassistant.components.climate.const import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, DOMAIN as CLIMATE_DOMAIN, - HVAC_MODE_AUTO, - HVAC_MODE_FAN_ONLY, + FAN_AUTO, ClimateEntityFeature, HVACAction, HVACMode, @@ -25,6 +24,8 @@ from .const import SIGNAL_ADD_ENTITIES from .insteon_entity import InsteonEntity from .utils import async_add_insteon_entities +FAN_ONLY = "fan_only" + COOLING = 1 HEATING = 2 DEHUMIDIFYING = 3 @@ -46,7 +47,7 @@ HVAC_MODES = { 2: HVACMode.COOL, 3: HVACMode.HEAT_COOL, } -FAN_MODES = {4: HVAC_MODE_AUTO, 8: HVAC_MODE_FAN_ONLY} +FAN_MODES = {4: FAN_AUTO, 8: FAN_ONLY} async def async_setup_entry(