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.
|
- `"base": "<http error text>"` when the server returns an HTTP error.
|
||||||
"""
|
"""
|
||||||
errors = {}
|
errors = {}
|
||||||
|
client = create_client(self.hass, user_input)
|
||||||
try:
|
try:
|
||||||
async with asyncio.timeout(10):
|
async with asyncio.timeout(10):
|
||||||
client = create_client(self.hass, user_input)
|
|
||||||
await client.async_login(
|
await client.async_login(
|
||||||
email=user_input[CONF_EMAIL], password=user_input[CONF_PASSWORD]
|
email=user_input[CONF_EMAIL], password=user_input[CONF_PASSWORD]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user