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:
@@ -104,8 +104,10 @@ def on_message(client, userdata, msg):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Explicit VERSION1 callbacks (paho 2.x defaults to this but warns); our
|
# paho 2.x requires an explicit CallbackAPIVersion. We use VERSION1 to match
|
||||||
# on_connect/on_message use the (client, userdata, flags, rc) signature.
|
# 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 = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1,
|
||||||
client_id="pos-briefing-bridge")
|
client_id="pos-briefing-bridge")
|
||||||
client.username_pw_set(MQTT_USER, MQTT_PASS)
|
client.username_pw_set(MQTT_USER, MQTT_PASS)
|
||||||
|
|||||||
Reference in New Issue
Block a user