From 2994e73187eb572029ca915aa80cfc0129402bb8 Mon Sep 17 00:00:00 2001 From: Nathan Spencer Date: Mon, 24 Nov 2025 04:08:31 +0000 Subject: [PATCH] Move create_client outside of try block in config_flow --- custom_components/oasis_mini/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/oasis_mini/config_flow.py b/custom_components/oasis_mini/config_flow.py index e1427ff..b08b49c 100644 --- a/custom_components/oasis_mini/config_flow.py +++ b/custom_components/oasis_mini/config_flow.py @@ -157,9 +157,9 @@ class OasisDeviceConfigFlow(ConfigFlow, domain=DOMAIN): - `"base": ""` when the server returns an HTTP error. """ errors = {} + client = create_client(self.hass, user_input) try: async with asyncio.timeout(10): - client = create_client(self.hass, user_input) await client.async_login( email=user_input[CONF_EMAIL], password=user_input[CONF_PASSWORD] )