From 4a043fa76a538e74111cdd0b4955f75c1077fcf8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 27 Feb 2022 16:38:40 +0100 Subject: [PATCH] Telegram: client_id --- telegram/burrow-telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/burrow-telegram.py b/telegram/burrow-telegram.py index f763af0..7305915 100755 --- a/telegram/burrow-telegram.py +++ b/telegram/burrow-telegram.py @@ -137,7 +137,7 @@ async def mqtt_loop(): sctx.load_cert_chain('/etc/burrow-mqtt/client.crt', '/etc/burrow-mqtt/client.key') sctx.load_verify_locations(cafile='/etc/burrow-mqtt/ca.crt') - async with asyncio_mqtt.Client(hostname="burrow-mqtt", port=8883, tls_context=sctx) as mqtt: + async with asyncio_mqtt.Client(client_id='telegram', hostname="burrow-mqtt", port=8883, tls_context=sctx) as mqtt: async with mqtt.unfiltered_messages() as messages: await mqtt.subscribe("burrow/heating/#") await mqtt.subscribe("burrow/temp/#") -- 2.39.2