We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d66b747 + 1b5b442 commit 6df702aCopy full SHA for 6df702a
1 file changed
aiocomfoconnect/comfoconnect.py
@@ -33,6 +33,7 @@
33
from aiocomfoconnect.exceptions import (
34
AioComfoConnectNotConnected,
35
AioComfoConnectTimeout,
36
+ ComfoConnectNotAllowed,
37
)
38
from aiocomfoconnect.properties import Property
39
from aiocomfoconnect.sensors import Sensor
@@ -113,6 +114,11 @@ async def _reconnect_loop():
113
114
# Reconnect when connection has been dropped
115
_LOGGER.info("We got disconnected. Reconnecting.")
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
+
122
reconnect_task = self._loop.create_task(_reconnect_loop())
123
self._tasks.add(reconnect_task)
124
reconnect_task.add_done_callback(self._tasks.discard)
0 commit comments