mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Remove deprecated async_setup_platforms (#91929)
This commit is contained in:
@@ -1356,26 +1356,6 @@ class ConfigEntries:
|
||||
self.hass, SIGNAL_CONFIG_ENTRY_CHANGED, change_type, entry
|
||||
)
|
||||
|
||||
@callback
|
||||
def async_setup_platforms(
|
||||
self, entry: ConfigEntry, platforms: Iterable[Platform | str]
|
||||
) -> None:
|
||||
"""Forward the setup of an entry to platforms."""
|
||||
report(
|
||||
(
|
||||
"called async_setup_platforms instead of awaiting"
|
||||
" async_forward_entry_setups; this will fail in version 2023.3"
|
||||
),
|
||||
# Raise this to warning once all core integrations have been migrated
|
||||
level=logging.WARNING,
|
||||
error_if_core=False,
|
||||
)
|
||||
for platform in platforms:
|
||||
self.hass.async_create_task(
|
||||
self.async_forward_entry_setup(entry, platform),
|
||||
f"config entry forward setup {entry.title} {entry.domain} {entry.entry_id} {platform}",
|
||||
)
|
||||
|
||||
async def async_forward_entry_setups(
|
||||
self, entry: ConfigEntry, platforms: Iterable[Platform | str]
|
||||
) -> None:
|
||||
|
||||
Reference in New Issue
Block a user