mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-12-06 18:44:14 -05:00
Move create_client outside of try block in config_flow
This commit is contained in:
@@ -157,9 +157,9 @@ class OasisDeviceConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
- `"base": "<http error text>"` 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]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user