docs: correct paho v1 deprecation comment in bridge

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mortdecai
2026-06-07 13:38:04 -04:00
parent 980002064a
commit 1187a82490
+4 -2
View File
@@ -104,8 +104,10 @@ def on_message(client, userdata, msg):
def main():
# Explicit VERSION1 callbacks (paho 2.x defaults to this but warns); our
# on_connect/on_message use the (client, userdata, flags, rc) signature.
# paho 2.x requires an explicit CallbackAPIVersion. We use VERSION1 to match
# our (client, userdata, flags, rc) callback signatures and the working lgtv
# bridge. paho logs a one-time deprecation warning for v1 at startup; it is
# harmless and does not affect operation.
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1,
client_id="pos-briefing-bridge")
client.username_pw_set(MQTT_USER, MQTT_PASS)