From b0bb6b628a067280f629fca05e1668f57b7e10ee Mon Sep 17 00:00:00 2001 From: LucidityCrash Date: Tue, 25 Feb 2025 21:15:22 +0000 Subject: [PATCH] Attempt to fix config_entry warning --- custom_components/pyscript/config_flow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/pyscript/config_flow.py b/custom_components/pyscript/config_flow.py index 299b7a2..0cfcab6 100644 --- a/custom_components/pyscript/config_flow.py +++ b/custom_components/pyscript/config_flow.py @@ -24,9 +24,9 @@ class PyscriptOptionsConfigFlow(config_entries.OptionsFlow): """Handle a pyscript options flow.""" - def __init__(self, config_entry: ConfigEntry) -> None: + def __init__(self) -> None: """Initialize pyscript options flow.""" - self._config_entry = config_entry + self._conf_app_id: str | None = None self._show_form = False async def async_step_init(self, user_input: Dict[str, Any] = None) -> Dict[str, Any]: @@ -88,7 +88,7 @@ class PyscriptConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): @callback def async_get_options_flow(config_entry: ConfigEntry) -> PyscriptOptionsConfigFlow: """Get the options flow for this handler.""" - return PyscriptOptionsConfigFlow(config_entry) + return PyscriptOptionsConfigFlow() async def async_step_user(self, user_input: Dict[str, Any] = None) -> Dict[str, Any]: """Handle a flow initialized by the user."""