Skip to content

Commit

Permalink
Refactor to use async_forward_entry_setups
Browse files Browse the repository at this point in the history
This is required for compatability with new versions of HA
Fixes Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups;  #154
  • Loading branch information
ekutner committed Jan 28, 2023
1 parent 6eab57c commit d1e8ece
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Alternative Home Connect Integration for Home Assistant
This project is an alternative integration for Home Connect enabled home appliances manufactured by BSH under the Bosch, Siemens, Constructa and Neff brands.

*If you're using this integration please star it on Github*

</br>

Expand Down
4 changes: 3 additions & 1 deletion custom_components/home_connect_alt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ async def on_device_removed(appliance:Appliance):


# Setup all the callback listeners before starting to load the data
hass.config_entries.async_setup_platforms(entry, PLATFORMS)

#hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
register_events_publisher(hass, homeconnect)

# Continue loading the HomeConnect data model and set the callback to be notified when done
Expand Down
2 changes: 1 addition & 1 deletion custom_components/home_connect_alt/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "home_connect_alt",
"name": "Home Connect Alt",
"version": "0.5.9",
"version": "0.5.10",
"config_flow": true,
"documentation": "https://github.com/ekutner/home-connect-hass",
"issue_tracker": "https://github.com/ekutner/home-connect-hass/issues",
Expand Down

0 comments on commit d1e8ece

Please sign in to comment.