Skip to content

Commit

Permalink
Use async_forward_entry_setups instead of async_setup_platforms (#3038)
Browse files Browse the repository at this point in the history
- Replaces current async_setup_platforms function with async_forward_entry_setups, which will prevent the integration from failing to start in Home Assistant 2023.3+
  • Loading branch information
RobertD502 authored Jan 27, 2023
1 parent ec7c1a3 commit ec87d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def async_startup():
hacs.log.info("Update entities are only supported when using UI configuration")

else:
hass.config_entries.async_setup_platforms(
await hass.config_entries.async_forward_entry_setups(
config_entry,
[Platform.SENSOR, Platform.UPDATE]
if hacs.configuration.experimental
Expand Down

0 comments on commit ec87d5d

Please sign in to comment.