Fix point setup (#23441)

Fix point setup
This commit is contained in:
Fredrik Erlandsson 2019-04-26 20:56:55 +02:00 committed by Martin Hjelmare
parent 08c36e0089
commit 61ea6256c6

View File

@ -88,7 +88,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
await async_setup_webhook(hass, entry, session)
client = MinutPointClient(hass, entry, session)
hass.data.setdefault(DOMAIN, {}).update({entry.entry_id: client})
await client.update()
hass.async_create_task(client.update())
return True