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

Commit 7540960

Browse files
committed
Change to async_forward_entry_setups
1 parent 1d24038 commit 7540960

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

custom_components/sbanken/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
1616
if DOMAIN not in hass.data:
1717
hass.data[DOMAIN] = {}
1818

19-
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
20-
2119
api = SbankenApi(entry.options.get(CONF_CLIENT_ID), entry.options.get(CONF_SECRET))
2220
hass.data[DOMAIN]["api"] = api
2321
hass.data[DOMAIN]["listener"] = entry.add_update_listener(update_listener)
22+
23+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
24+
2425
return True
2526

2627

custom_components/sbanken/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "sbanken",
33
"name": "Sbanken",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"config_flow": true,
66
"documentation": "https://github.com/toringer/home-assistant-sbanken",
77
"issue_tracker": "https://github.com/toringer/home-assistant-sbanken/issues",

0 commit comments

Comments
 (0)