Skip to content

Commit

Permalink
Use async entry setup (#39)
Browse files Browse the repository at this point in the history
* Use forward_entry_setups

* Bump version

* await setup
  • Loading branch information
TomBrien committed Apr 4, 2023
1 parent dd7d2ab commit bf8d791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/cardiffwaste/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data.setdefault(DOMAIN, {})

hass.data[DOMAIN][entry.entry_id] = instance
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True

Expand Down
2 changes: 1 addition & 1 deletion custom_components/cardiffwaste/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"cardiffwaste==0.2.6"
],
"ssdp": [],
"version": "0.4.0",
"version": "0.4.1",
"zeroconf": []
}

0 comments on commit bf8d791

Please sign in to comment.