Skip to content

Commit 4ac2ff0

Browse files
authored
Handle EOFError (#105)
1 parent 1376c8c commit 4ac2ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchbot/devices/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# Base key when encryption is set
3838
KEY_PASSWORD_PREFIX = "571"
3939

40-
BLEAK_EXCEPTIONS = (AttributeError, BleakError, asyncio.exceptions.TimeoutError)
40+
BLEAK_EXCEPTIONS = (AttributeError, BleakError, EOFError, asyncio.exceptions.TimeoutError)
4141

4242
# How long to hold the connection
4343
# to wait for additional commands for

0 commit comments

Comments
 (0)