Skip to content

Commit

Permalink
latest dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiassauerwein-pai committed Mar 24, 2022
1 parent c5ac76c commit a01e719
Show file tree
Hide file tree
Showing 42 changed files with 3,505 additions and 1,056 deletions.
6 changes: 2 additions & 4 deletions custom_components/netatmo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import aiohttp
from . import pyatmo
from .pyatmo.const import ALL_SCOPES as NETATMO_SCOPES
import voluptuous as vol

from homeassistant.components import cloud
Expand Down Expand Up @@ -47,7 +48,6 @@
DATA_PERSONS,
DATA_SCHEDULES,
DOMAIN,
NETATMO_SCOPES,
OAUTH2_AUTHORIZE,
OAUTH2_TOKEN,
PLATFORMS,
Expand Down Expand Up @@ -141,11 +141,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
}

data_handler = NetatmoDataHandler(hass, entry)
await data_handler.async_setup()
hass.async_create_task(data_handler.async_setup())
hass.data[DOMAIN][entry.entry_id][DATA_HANDLER] = data_handler

hass.config_entries.async_setup_platforms(entry, PLATFORMS)

async def unregister_webhook(
call_or_event_or_dt: ServiceCall | Event | datetime | None,
) -> None:
Expand Down
Loading

0 comments on commit a01e719

Please sign in to comment.