Skip to content

Commit bd7e0cb

Browse files
committed
Bump paho-mqtt from 1.6.1 to 2.0.0 (#224)
Use more strict version constraints for paho-mqtt
1 parent 0884842 commit bd7e0cb

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

poetry.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ roomba-password = "roombapy.entry_points:password"
2424
[tool.poetry.dependencies]
2525
python = ">=3.10,<4.0"
2626
orjson = ">=3.9.13"
27-
paho-mqtt = ">=1.5.1,<3.0.0"
27+
paho-mqtt = "~1.6.1"
2828
pydantic = ">=1"
2929

3030
[tool.poetry.group.dev.dependencies]

roombapy/remote_client.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ def _open_mqtt_connection(self):
109109
self.mqtt_client.loop_start()
110110

111111
def _get_mqtt_client(self):
112-
mqtt_client = mqtt.Client(
113-
client_id=self.blid,
114-
callback_api_version=mqtt.CallbackAPIVersion.VERSION1,
115-
)
112+
mqtt_client = mqtt.Client(client_id=self.blid)
116113
mqtt_client.username_pw_set(username=self.blid, password=self.password)
117114
mqtt_client.on_connect = self._internal_on_connect
118115
mqtt_client.on_disconnect = self._internal_on_disconnect

0 commit comments

Comments
 (0)