Skip to content

Commit

Permalink
Use async_forward_entry_setups function (#135)
Browse files Browse the repository at this point in the history
- Utilize `async_forward_entry_setups` instead of `async_setup_platforms`
- Prevents integration from failing to start beginning with Home Assistant 2023.3

Co-authored-by: Mick Vleeshouwer <mick@imick.nl>
  • Loading branch information
RobertD502 and iMicknl committed Jan 30, 2023
1 parent 499047a commit 568d538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nest_protect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
client=client,
)

hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

# Subscribe for real-time updates
# TODO cancel when closing HA / unloading entry
Expand Down

0 comments on commit 568d538

Please sign in to comment.