mirror of
https://github.com/elisspace/core.git
synced 2026-08-29 23:52:02 +00:00
12 lines
289 B
Python
12 lines
289 B
Python
"""Mock connections for Insteon."""
|
|
|
|
|
|
async def mock_successful_connection(*args, **kwargs):
|
|
"""Return a successful connection."""
|
|
return True
|
|
|
|
|
|
async def mock_failed_connection(*args, **kwargs):
|
|
"""Return a failed connection."""
|
|
raise ConnectionError("Connection failed")
|