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)