Skip to content

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 a10410e commit 61577e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/met_next_6_hours_forecast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ 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 = MetApi()
hass.data[DOMAIN]["api"] = api

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True


Expand Down
2 changes: 1 addition & 1 deletion custom_components/met_next_6_hours_forecast/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "met_next_6_hours_forecast",
"name": "Met.no next 6 hours forecast",
"version": "1.0.3",
"version": "1.0.4",
"config_flow": true,
"documentation": "https://github.com/toringer/home-assistant-met-next-6-hours-forecast",
"issue_tracker": "https://github.com/toringer/home-assistant-met-next-6-hours-forecast/issues",
Expand Down

0 comments on commit 61577e1

Please sign in to comment.