Catch connection errors that makes tradfri hang in startup (#59368)
This commit is contained in:
parent
fc58df6df9
commit
06d29040b9
3 changed files with 11 additions and 9 deletions
|
@ -59,7 +59,7 @@ def mock_gateway_fixture():
|
|||
def mock_api_fixture(mock_gateway):
|
||||
"""Mock api."""
|
||||
|
||||
async def api(command):
|
||||
async def api(command, timeout=None):
|
||||
"""Mock api function."""
|
||||
# Store the data for "real" command objects.
|
||||
if hasattr(command, "_data") and not isinstance(command, Mock):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue