Skip to content

Commit 6039e08

Browse files
committed
Version enum name wrong
1 parent 94e505f commit 6039e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wiotp/sdk/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def __init__(
131131

132132
# paho 2.0.0 has a breaking change for callbacks to support both 2.0.0 and 1.x we need
133133
# to create a client in version1 mode if using 2.0.0
134-
if paho.__version__ >= "2.0.0":
135-
self.client = paho.Client(paho.enums.CallbackAPIVersion.API_VERSION1, self.clientId, transport=transport, clean_session=(not cleanStart))
134+
if pahoVersion >= "2.0.0":
135+
self.client = paho.Client(paho.CallbackAPIVersion.VERSION1, self.clientId, transport=transport, clean_session=(not cleanStart))
136136
else:
137137
self.client = paho.Client(self.clientId, transport=transport, clean_session=(not cleanStart))
138138

0 commit comments

Comments
 (0)