Commit 10a82f5 1 parent d66b747 commit 10a82f5 Copy full SHA for 10a82f5
File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 33
33
from aiocomfoconnect .exceptions import (
34
34
AioComfoConnectNotConnected ,
35
35
AioComfoConnectTimeout ,
36
+ ComfoConnectNotAllowed ,
36
37
)
37
38
from aiocomfoconnect .properties import Property
38
39
from aiocomfoconnect .sensors import Sensor
@@ -113,6 +114,11 @@ async def _reconnect_loop():
113
114
# Reconnect when connection has been dropped
114
115
_LOGGER .info ("We got disconnected. Reconnecting." )
115
116
117
+ except ComfoConnectNotAllowed as exception :
118
+ # Passthrough exception if not allowed (because not registered uuid for example )
119
+ connected .set_exception (exception )
120
+ return
121
+
116
122
reconnect_task = self ._loop .create_task (_reconnect_loop ())
117
123
self ._tasks .add (reconnect_task )
118
124
reconnect_task .add_done_callback (self ._tasks .discard )
You can’t perform that action at this time.
0 commit comments