From c47205e4cf5135cd3b9a81b736aecd606c62efc9 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 10 Dec 2024 10:39:53 +0100 Subject: [PATCH] Fixed deprecation warning * custom_components/daikin_onecta/config_flow.py: --- custom_components/daikin_onecta/config_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/daikin_onecta/config_flow.py b/custom_components/daikin_onecta/config_flow.py index 0700608..303bc8d 100644 --- a/custom_components/daikin_onecta/config_flow.py +++ b/custom_components/daikin_onecta/config_flow.py @@ -23,7 +23,6 @@ class OptionsFlowHandler(config_entries.OptionsFlow): def __init__(self, config_entry): """Initialize HACS options flow.""" - self.config_entry = config_entry self.options = dict(config_entry.options) async def async_step_init(self, user_input: dict[str, str] | None = None) -> FlowResult: @@ -69,7 +68,7 @@ async def async_step_init(self, user_input: dict[str, str] | None = None) -> Flo async def _update_options(self): """Update config entry options.""" - return self.async_create_entry(title=self.config_entry.data.get("Hub "), data=self.options) + return self.async_create_entry(title="", data=self.options) class FlowHandler(