From 1187a8249080fda291c6a112c8e9bce5113a6c42 Mon Sep 17 00:00:00 2001 From: Mortdecai Date: Sun, 7 Jun 2026 13:38:04 -0400 Subject: [PATCH] docs: correct paho v1 deprecation comment in bridge Co-Authored-By: Claude Opus 4.8 (1M context) --- pos_briefing_mqtt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pos_briefing_mqtt.py b/pos_briefing_mqtt.py index 218352d..af7b654 100644 --- a/pos_briefing_mqtt.py +++ b/pos_briefing_mqtt.py @@ -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)