Skip to content

Commit

Permalink
fix: switch to async_forward_entry_setups (#73)
Browse files Browse the repository at this point in the history
* fix: switch to `async_forward_entry_setups`

* Update manifest.json
  • Loading branch information
firstof9 authored Sep 21, 2023
1 parent 93a74bc commit 95116b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion custom_components/openei/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
raise ConfigEntryNotReady

hass.data[DOMAIN][entry.entry_id] = coordinator
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)

return True

Expand Down
8 changes: 4 additions & 4 deletions custom_components/openei/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"domain": "openei",
"name": "OpenEI Utility Rates",
"documentation": "https://github.com/firstof9/ha-openei",
"issue_tracker": "https://github.com/firstof9/ha-openei/issues",
"codeowners": ["@firstof9"],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/firstof9/ha-openei",
"iot_class": "cloud_polling",
"config_flow": true,
"codeowners": ["@firstof9"],
"issue_tracker": "https://github.com/firstof9/ha-openei/issues",
"requirements": ["python-openei==0.1.17"],
"version": "0.1.6"
}

0 comments on commit 95116b1

Please sign in to comment.