diff --git a/poetry.lock b/poetry.lock index bad8238..5823b06 100644 --- a/poetry.lock +++ b/poetry.lock @@ -202,17 +202,16 @@ files = [ [[package]] name = "paho-mqtt" -version = "2.0.0" +version = "1.6.1" description = "MQTT version 5.0/3.1.1 client class" optional = false -python-versions = ">=3.7" +python-versions = "*" files = [ - {file = "paho_mqtt-2.0.0-py3-none-any.whl", hash = "sha256:2ef745073dfc9aa68bfec30d0b9b6f0304ea75182bae85a7c77a80cefce1eff5"}, - {file = "paho_mqtt-2.0.0.tar.gz", hash = "sha256:13b205f29251e4f2c66a6c923c31fc4fd780561e03b2d775cff8e4f2915cf947"}, + {file = "paho-mqtt-1.6.1.tar.gz", hash = "sha256:2a8291c81623aec00372b5a85558a372c747cbca8e9934dfe218638b8eefc26f"}, ] [package.extras] -proxy = ["pysocks"] +proxy = ["PySocks"] [[package]] name = "platformdirs" @@ -452,6 +451,7 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -629,13 +629,13 @@ files = [ [[package]] name = "virtualenv" -version = "20.25.0" +version = "20.25.1" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.7" files = [ - {file = "virtualenv-20.25.0-py3-none-any.whl", hash = "sha256:4238949c5ffe6876362d9c0180fc6c3a824a7b12b80604eeb8085f2ed7460de3"}, - {file = "virtualenv-20.25.0.tar.gz", hash = "sha256:bf51c0d9c7dd63ea8e44086fa1e4fb1093a31e963b86959257378aef020e1f1b"}, + {file = "virtualenv-20.25.1-py3-none-any.whl", hash = "sha256:961c026ac520bac5f69acb8ea063e8a4f071bcc9457b9c1f28f6b085c511583a"}, + {file = "virtualenv-20.25.1.tar.gz", hash = "sha256:e08e13ecdca7a0bd53798f356d5831434afa5b07b93f0abdf0797b7a06ffe197"}, ] [package.dependencies] @@ -650,4 +650,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = ">=3.10,<4.0" -content-hash = "b9548b456ddcc37c02ef52a5349c63635f8c28a7faa3044b9ce3f58a6af2b9df" +content-hash = "fc3bd1370c93012c5834dece966711a587f1b54979e1230534394802f495e76f" diff --git a/pyproject.toml b/pyproject.toml index c8ba179..4e71644 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/roombapy/remote_client.py b/roombapy/remote_client.py index aaa4e45..b62748f 100644 --- a/roombapy/remote_client.py +++ b/roombapy/remote_client.py @@ -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