Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Erreur avec HA 2025.6 #252

@7185

Description

@7185

L'intégration est en erreur depuis HA 2025.6.
La cause est documentée ici : https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/
Un simple fix qui semble fonctionner pour moi :

diff --git i/custom_components/apiEnedis/__init__.py w/custom_components/apiEnedis/__init__.py
index e00d836..904d665 100644
--- i/custom_components/apiEnedis/__init__.py
+++ w/custom_components/apiEnedis/__init__.py
@@ -146,10 +146,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
         UPDATE_LISTENER: update_listener,
     }
 
-    for platform in PLATFORMS:
-        hass.async_create_task(
-            hass.config_entries.async_forward_entry_setup(entry, platform)
-        )
+    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
 
     return True
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions