fix errors

This commit is contained in:
Andrey
2021-02-28 21:15:48 +03:00
parent a2f412b89e
commit 137eb8b6ba
4 changed files with 14 additions and 7 deletions

View File

@@ -118,7 +118,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
reload = user_input.pop(CONF_RELOAD)
cfg = dict(self.config_entry.data)
cfg.update(user_input)
hub = await get_hub(self.hass, self.config_entry.data)
hub = await get_hub(self.hass, cfg)
if reload:
await hub.start()
new = await hub.get_config(nports=user_input.get(CONF_NPORTS, 37))