mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix issue changing Insteon Hub configuration (#117204)
Add Hub version to config schema
This commit is contained in:
parent
0e3c0ccfd8
commit
9420e041ac
@ -22,6 +22,7 @@ from .const import (
|
|||||||
CONF_CAT,
|
CONF_CAT,
|
||||||
CONF_DIM_STEPS,
|
CONF_DIM_STEPS,
|
||||||
CONF_HOUSECODE,
|
CONF_HOUSECODE,
|
||||||
|
CONF_HUB_VERSION,
|
||||||
CONF_SUBCAT,
|
CONF_SUBCAT,
|
||||||
CONF_UNITCODE,
|
CONF_UNITCODE,
|
||||||
HOUSECODES,
|
HOUSECODES,
|
||||||
@ -143,6 +144,7 @@ def build_hub_schema(
|
|||||||
schema = {
|
schema = {
|
||||||
vol.Required(CONF_HOST, default=host): str,
|
vol.Required(CONF_HOST, default=host): str,
|
||||||
vol.Required(CONF_PORT, default=port): int,
|
vol.Required(CONF_PORT, default=port): int,
|
||||||
|
vol.Required(CONF_HUB_VERSION, default=hub_version): int,
|
||||||
}
|
}
|
||||||
if hub_version == 2:
|
if hub_version == 2:
|
||||||
schema[vol.Required(CONF_USERNAME, default=username)] = str
|
schema[vol.Required(CONF_USERNAME, default=username)] = str
|
||||||
|
Loading…
x
Reference in New Issue
Block a user