From 7ed5feee92844008a89ab41ca58589251a4b5863 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Wed, 10 Jul 2024 23:11:02 +0200 Subject: [PATCH] Extend generic hygrostat/thermostat actuators using config flow (#121690) --- homeassistant/components/generic_hygrostat/config_flow.py | 4 ++-- homeassistant/components/generic_thermostat/config_flow.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/generic_hygrostat/config_flow.py b/homeassistant/components/generic_hygrostat/config_flow.py index cade566968d..7c35b0e9317 100644 --- a/homeassistant/components/generic_hygrostat/config_flow.py +++ b/homeassistant/components/generic_hygrostat/config_flow.py @@ -7,9 +7,9 @@ from typing import Any, cast import voluptuous as vol +from homeassistant.components import fan, switch from homeassistant.components.humidifier import HumidifierDeviceClass from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorDeviceClass -from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN from homeassistant.const import CONF_NAME, PERCENTAGE from homeassistant.helpers import selector from homeassistant.helpers.schema_config_entry_flow import ( @@ -45,7 +45,7 @@ OPTIONS_SCHEMA = { ) ), vol.Required(CONF_HUMIDIFIER): selector.EntitySelector( - selector.EntitySelectorConfig(domain=SWITCH_DOMAIN) + selector.EntitySelectorConfig(domain=[switch.DOMAIN, fan.DOMAIN]) ), vol.Required( CONF_DRY_TOLERANCE, default=DEFAULT_TOLERANCE diff --git a/homeassistant/components/generic_thermostat/config_flow.py b/homeassistant/components/generic_thermostat/config_flow.py index f1fe1ecfe25..29e3d69c2da 100644 --- a/homeassistant/components/generic_thermostat/config_flow.py +++ b/homeassistant/components/generic_thermostat/config_flow.py @@ -7,8 +7,8 @@ from typing import Any, cast import voluptuous as vol +from homeassistant.components import fan, switch from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorDeviceClass -from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN from homeassistant.const import CONF_NAME, DEGREE from homeassistant.helpers import selector from homeassistant.helpers.schema_config_entry_flow import ( @@ -38,7 +38,7 @@ OPTIONS_SCHEMA = { ) ), vol.Required(CONF_HEATER): selector.EntitySelector( - selector.EntitySelectorConfig(domain=SWITCH_DOMAIN) + selector.EntitySelectorConfig(domain=[fan.DOMAIN, switch.DOMAIN]) ), vol.Required( CONF_COLD_TOLERANCE, default=DEFAULT_TOLERANCE