mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-06-26 10:35:00 +02:00
tweaks
This commit is contained in:
parent
7a8589b1de
commit
b76116f5bf
|
@ -30,6 +30,7 @@ from aioesphomeapi.core import (
|
||||||
InvalidAuthAPIError,
|
InvalidAuthAPIError,
|
||||||
RequiresEncryptionAPIError,
|
RequiresEncryptionAPIError,
|
||||||
ResolveAPIError,
|
ResolveAPIError,
|
||||||
|
SocketClosedAPIError,
|
||||||
TimeoutAPIError,
|
TimeoutAPIError,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -461,6 +462,7 @@ async def test_finish_connection_times_out(
|
||||||
[
|
[
|
||||||
(OSError("Socket error"), HandshakeAPIError),
|
(OSError("Socket error"), HandshakeAPIError),
|
||||||
(APIConnectionError, APIConnectionError),
|
(APIConnectionError, APIConnectionError),
|
||||||
|
(SocketClosedAPIError, SocketClosedAPIError),
|
||||||
(asyncio.TimeoutError, TimeoutAPIError),
|
(asyncio.TimeoutError, TimeoutAPIError),
|
||||||
(asyncio.CancelledError, APIConnectionError),
|
(asyncio.CancelledError, APIConnectionError),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user