Skip to content

Commit

Permalink
Add humidifier and climate as managed device
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Collin committed Aug 27, 2023
1 parent 90184a9 commit 450cfab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/solar_optimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from homeassistant.components.input_boolean import DOMAIN as INPUT_BOOLEAN_DOMAIN
from homeassistant.components.input_number import DOMAIN as INPUT_NUMBER_DOMAIN
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
from homeassistant.components.humidifier import DOMAIN as HUMIDIFIER_DOMAIN
from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN
from homeassistant.components.number import DOMAIN as NUMBER_DOMAIN

# from homeassistant.helpers.entity_component import EntityComponent
Expand Down Expand Up @@ -43,7 +45,7 @@
vol.Required("name"): str,
vol.Required("entity_id"): selector.EntitySelector(
selector.EntitySelectorConfig(
domain=[INPUT_BOOLEAN_DOMAIN, SWITCH_DOMAIN]
domain=[INPUT_BOOLEAN_DOMAIN, SWITCH_DOMAIN, HUMIDIFIER_DOMAIN, CLIMATE_DOMAIN]
)
),
vol.Optional("power_entity_id"): selector.EntitySelector(
Expand Down

0 comments on commit 450cfab

Please sign in to comment.