Skip to content

Commit

Permalink
Bump paho-mqtt from 1.6.1 to 2.0.0 (pschmitt#224) (pschmitt#257)
Browse files Browse the repository at this point in the history
Use more strict version constraints for paho-mqtt
  • Loading branch information
Orhideous authored Feb 23, 2024
1 parent 78e4ecc commit 3ae4b5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ roomba-password = "roombapy.entry_points:password"
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
orjson = ">=3.9.13"
paho-mqtt = ">=1.5.1,<3.0.0"
paho-mqtt = "~1.6.1"
pydantic = ">=1"

[tool.poetry.group.dev.dependencies]
Expand Down
5 changes: 1 addition & 4 deletions roombapy/remote_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ def _open_mqtt_connection(self):
self.mqtt_client.loop_start()

def _get_mqtt_client(self):
mqtt_client = mqtt.Client(
client_id=self.blid,
callback_api_version=mqtt.CallbackAPIVersion.VERSION1,
)
mqtt_client = mqtt.Client(client_id=self.blid)
mqtt_client.username_pw_set(username=self.blid, password=self.password)
mqtt_client.on_connect = self._internal_on_connect
mqtt_client.on_disconnect = self._internal_on_disconnect
Expand Down

0 comments on commit 3ae4b5a

Please sign in to comment.