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] )