Skip to content

Commit

Permalink
refactor: async_setup_platforms -> async_forward_entry_setups (#85)
Browse files Browse the repository at this point in the history
Address #83

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for auto_backup using this method at custom_components/auto_backup/init.py, line 192: hass.config_entries.async_setup_platforms(entry, PLATFORMS)
  • Loading branch information
alvinchen1 authored Feb 4, 2023
1 parent ce23198 commit c0026d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/auto_backup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def async_service_handler(call: ServiceCallType):
for service, schema in MAP_SERVICES.items():
hass.services.async_register(DOMAIN, service, async_service_handler, schema)

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


Expand Down

0 comments on commit c0026d5

Please sign in to comment.