From 8bb3d25bddd8cdb7e5b82fe5fa7a9128af8456ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 5 Nov 2024 04:49:48 +0100 Subject: [PATCH] Do not set config_entry in option flow if HA > 24.11.99 (#4181) --- custom_components/hacs/config_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/hacs/config_flow.py b/custom_components/hacs/config_flow.py index 6c368c601ca..ada9d11380c 100644 --- a/custom_components/hacs/config_flow.py +++ b/custom_components/hacs/config_flow.py @@ -196,7 +196,8 @@ class HacsOptionsFlowHandler(OptionsFlow): def __init__(self, config_entry): """Initialize HACS options flow.""" - self.config_entry = config_entry + if AwesomeVersion(HAVERSION) < "2024.11.99": + self.config_entry = config_entry async def async_step_init(self, _user_input=None): """Manage the options."""