From 591ba0ff49f401cced6a6e7f7cd845a115312a45 Mon Sep 17 00:00:00 2001 From: DeerMaximum <43999966+DeerMaximum@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:06:28 +0100 Subject: [PATCH] Fix depricated use config_entry (#80) --- custom_components/ta_coe/config_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/ta_coe/config_flow.py b/custom_components/ta_coe/config_flow.py index 744e505..bddc433 100644 --- a/custom_components/ta_coe/config_flow.py +++ b/custom_components/ta_coe/config_flow.py @@ -213,8 +213,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow): def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Initialize options flow.""" - self.config_entry = config_entry - self.data = dict(self.config_entry.data) + self.data = dict(config_entry.data) async def async_step_init( self, user_input: dict[str, Any] | None = None