Skip to content

Commit

Permalink
no config support
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed May 14, 2024
1 parent 29a259c commit e4797e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/eltako/config_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ def get_device_config(config: dict, id: int) -> dict:
gateways = config[CONF_GATEWAY]
for g in gateways:
if g[CONF_ID] == id:
return g[CONF_DEVICES]
if CONF_DEVICES in g:
return g[CONF_DEVICES]
else:
return {}
return None

async def async_get_list_of_gateway_descriptions(hass: HomeAssistant, CONFIG_SCHEMA: dict, get_integration_config=async_integration_yaml_config, filter_out: list[str]=[]) -> dict:
Expand Down

0 comments on commit e4797e8

Please sign in to comment.