Skip to content

Commit 93fdb17

Browse files
committed
Bug fix: In the case of __on_disconnect, where __try_connect wasn't set to False, __on_connect is triggered early, causing subscriptions to be queued. The discovery ends with no devices found.
1 parent 92a8862 commit 93fdb17

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

inelsmqtt/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def __on_disconnect(
257257
_LOGGER.warning("%s - disconnecting reason [%s]", self.__host, reason_code)
258258

259259
self.__is_available = False
260+
self.__try_connect = False
260261

261262
for item in self.__is_subscribed_list.keys():
262263
self.__is_subscribed_list[item] = False

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="elkoep-mqtt",
7-
version="0.2.33.beta.6",
7+
version="0.2.33.beta.7",
88
url="https://github.com/epdevlab/elkoep-mqtt",
99
license="MIT",
1010
author="Elko EP s.r.o.",

0 commit comments

Comments
 (0)