From c29dedeb6b9137463b1f7c44d9f7fd441484aaf6 Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:09:37 -0500 Subject: [PATCH] Update config_flow.py Ajout de forward compatibility. --- custom_components/hilo/config_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/hilo/config_flow.py b/custom_components/hilo/config_flow.py index b187b73..520e9cf 100755 --- a/custom_components/hilo/config_flow.py +++ b/custom_components/hilo/config_flow.py @@ -156,6 +156,8 @@ def __init__(self, config_entry: ConfigEntry) -> None: """Initialize""" if AwesomeVersion(HAVERSION) < "2024.11.99": self.config_entry = config_entry + else: + self._config_entry = config_entry async def async_step_init( self, user_input: dict[str, Any] | None = None