mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix hangouts (#16232)
This commit is contained in:
parent
09dc4d663d
commit
9a786e449b
@ -45,11 +45,17 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
config = config.get(DOMAIN)
|
config = config.get(DOMAIN)
|
||||||
if config is None:
|
if config is None:
|
||||||
|
hass.data[DOMAIN] = {
|
||||||
|
CONF_INTENTS: {},
|
||||||
|
CONF_ERROR_SUPPRESSED_CONVERSATIONS: [],
|
||||||
|
}
|
||||||
return True
|
return True
|
||||||
|
|
||||||
hass.data[DOMAIN] = {CONF_INTENTS: config.get(CONF_INTENTS),
|
hass.data[DOMAIN] = {
|
||||||
|
CONF_INTENTS: config[CONF_INTENTS],
|
||||||
CONF_ERROR_SUPPRESSED_CONVERSATIONS:
|
CONF_ERROR_SUPPRESSED_CONVERSATIONS:
|
||||||
config.get(CONF_ERROR_SUPPRESSED_CONVERSATIONS)}
|
config[CONF_ERROR_SUPPRESSED_CONVERSATIONS],
|
||||||
|
}
|
||||||
|
|
||||||
for data in hass.data[DOMAIN][CONF_INTENTS].values():
|
for data in hass.data[DOMAIN][CONF_INTENTS].values():
|
||||||
matchers = []
|
matchers = []
|
||||||
@ -58,7 +64,7 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
data[CONF_MATCHERS] = matchers
|
data[CONF_MATCHERS] = matchers
|
||||||
|
|
||||||
hass.async_add_job(hass.config_entries.flow.async_init(
|
hass.async_create_task(hass.config_entries.flow.async_init(
|
||||||
DOMAIN, context={'source': config_entries.SOURCE_IMPORT}
|
DOMAIN, context={'source': config_entries.SOURCE_IMPORT}
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user