fix: pin paho-mqtt to v1.x (v2 broke callback API)

paho-mqtt v2 changed Client constructor and on_connect callback
signatures, breaking the Meshtastic MQTT bridge. Pin to <2.0.0
so the existing v1 code works correctly in Docker.
This commit is contained in:
anoracleofra-code
2026-03-26 15:57:14 -06:00
parent 12cf5c0824
commit 6140e9b7da
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ dependencies = [
"reverse-geocoder==1.5.1",
"sgp4==2.23",
"orjson>=3.10.0",
"paho-mqtt>=1.6.0",
"paho-mqtt>=1.6.0,<2.0.0",
"slowapi==0.1.9",
"uvicorn==0.34.0",
"yfinance==0.2.54",
Generated
+3 -6
View File
@@ -111,7 +111,7 @@ requires-dist = [
{ name = "feedparser", specifier = "==6.0.10" },
{ name = "httpx", specifier = "==0.28.1" },
{ name = "orjson", specifier = ">=3.10.0" },
{ name = "paho-mqtt", specifier = ">=1.6.0" },
{ name = "paho-mqtt", specifier = ">=1.6.0,<2.0.0" },
{ name = "playwright", specifier = "==1.50.0" },
{ name = "playwright-stealth", specifier = "==1.0.6" },
{ name = "pydantic", specifier = "==2.11.1" },
@@ -985,12 +985,9 @@ wheels = [
[[package]]
name = "paho-mqtt"
version = "2.1.0"
version = "1.6.1"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/39/15/0a6214e76d4d32e7f663b109cf71fb22561c2be0f701d67f93950cd40542/paho_mqtt-2.1.0.tar.gz", hash = "sha256:12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1723834", size = 148848, upload-time = "2024-04-29T19:52:55.591Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/c4/cb/00451c3cf31790287768bb12c6bec834f5d292eaf3022afc88e14b8afc94/paho_mqtt-2.1.0-py3-none-any.whl", hash = "sha256:6db9ba9b34ed5bc6b6e3812718c7e06e2fd7444540df2455d2c51bd58808feee", size = 67219, upload-time = "2024-04-29T19:52:48.345Z" },
]
sdist = { url = "https://files.pythonhosted.org/packages/f8/dd/4b75dcba025f8647bc9862ac17299e0d7d12d3beadbf026d8c8d74215c12/paho-mqtt-1.6.1.tar.gz", hash = "sha256:2a8291c81623aec00372b5a85558a372c747cbca8e9934dfe218638b8eefc26f", size = 99373, upload-time = "2021-10-21T10:33:59.864Z" }
[[package]]
name = "pandas"