From 00a215ae5283ecfcb7824e6e60a9bce80823edfe Mon Sep 17 00:00:00 2001 From: "Mr. Finch" Date: Tue, 5 Nov 2024 05:34:58 +0100 Subject: [PATCH] fix: adds missing await keyword Detected code that calls async_forward_entry_setup for integration slack_user with title: [REDACTED] and entry_id: [REDACTED], during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue. --- custom_components/slack_user/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/slack_user/__init__.py b/custom_components/slack_user/__init__.py index b7f98a0..b5a8146 100644 --- a/custom_components/slack_user/__init__.py +++ b/custom_components/slack_user/__init__.py @@ -13,7 +13,7 @@ async def async_setup_entry(hass, entry): """Set up Slack User Entry.""" for component in COMPONENT_TYPES: hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, component) + await hass.config_entries.async_forward_entry_setup(entry, component) ) return True