Fix point setup (#23441)

Fix point setup
This commit is contained in:
Fredrik Erlandsson 2019-04-26 20:56:55 +02:00 committed by Pascal Vizeli
parent 0d4858e296
commit 95ed8fb245

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