Increase sleep in Risco setup (#77619)
This commit is contained in:
parent
93a8aef4cc
commit
1692808d5b
8 changed files with 10 additions and 16 deletions
|
@ -1,7 +1,6 @@
|
|||
"""Config flow for Risco integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Mapping
|
||||
import logging
|
||||
|
||||
|
@ -32,7 +31,6 @@ from .const import (
|
|||
DEFAULT_OPTIONS,
|
||||
DOMAIN,
|
||||
RISCO_STATES,
|
||||
SLEEP_INTERVAL,
|
||||
TYPE_LOCAL,
|
||||
)
|
||||
|
||||
|
@ -150,9 +148,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
await self.async_set_unique_id(info["title"])
|
||||
self._abort_if_unique_id_configured()
|
||||
|
||||
# Risco can hang if we don't wait before creating a new connection
|
||||
await asyncio.sleep(SLEEP_INTERVAL)
|
||||
|
||||
return self.async_create_entry(
|
||||
title=info["title"], data={**user_input, **{CONF_TYPE: TYPE_LOCAL}}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue