Skip to content

Commit

Permalink
Fix issue changing Insteon Hub configuration (#117204)
Browse files Browse the repository at this point in the history
Add Hub version to config schema
  • Loading branch information
teharris1 committed May 17, 2024
1 parent 0e3c0cc commit 9420e04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/insteon/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
CONF_CAT,
CONF_DIM_STEPS,
CONF_HOUSECODE,
CONF_HUB_VERSION,
CONF_SUBCAT,
CONF_UNITCODE,
HOUSECODES,
Expand Down Expand Up @@ -143,6 +144,7 @@ def build_hub_schema(
schema = {
vol.Required(CONF_HOST, default=host): str,
vol.Required(CONF_PORT, default=port): int,
vol.Required(CONF_HUB_VERSION, default=hub_version): int,
}
if hub_version == 2:
schema[vol.Required(CONF_USERNAME, default=username)] = str
Expand Down

0 comments on commit 9420e04

Please sign in to comment.