1
mirror of https://github.com/home-assistant/core synced 2024-10-04 07:58:43 +02:00

Fix daikin setup (#23440)

Fix daikin setup
This commit is contained in:
Fredrik Erlandsson 2019-04-26 20:24:02 +02:00 committed by Martin Hjelmare
parent 8fe95f4bab
commit 08c36e0089

View File

@ -63,10 +63,10 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
if not daikin_api:
return False
hass.data.setdefault(DOMAIN, {}).update({entry.entry_id: daikin_api})
await asyncio.wait([
hass.config_entries.async_forward_entry_setup(entry, component)
for component in COMPONENT_TYPES
])
for component in COMPONENT_TYPES:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(
entry, component))
return True