Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Change to async_forward_entry_setups
Browse files Browse the repository at this point in the history
  • Loading branch information
toringer committed Feb 12, 2023
1 parent 1d24038 commit 7540960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions custom_components/sbanken/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if DOMAIN not in hass.data:
hass.data[DOMAIN] = {}

hass.config_entries.async_setup_platforms(entry, PLATFORMS)

api = SbankenApi(entry.options.get(CONF_CLIENT_ID), entry.options.get(CONF_SECRET))
hass.data[DOMAIN]["api"] = api
hass.data[DOMAIN]["listener"] = entry.add_update_listener(update_listener)

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True


Expand Down
2 changes: 1 addition & 1 deletion custom_components/sbanken/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "sbanken",
"name": "Sbanken",
"version": "2.2.0",
"version": "2.2.1",
"config_flow": true,
"documentation": "https://github.com/toringer/home-assistant-sbanken",
"issue_tracker": "https://github.com/toringer/home-assistant-sbanken/issues",
Expand Down

0 comments on commit 7540960

Please sign in to comment.