fix: Narrow MQTT subscription topic

This commit is contained in:
2025-12-30 19:40:09 +00:00
committed by Tanner Collin (aider)
parent c93b444488
commit 56134c2d70

View File

@@ -38,7 +38,7 @@ async def fetch_mqtt():
hostname='10.55.0.106', hostname='10.55.0.106',
port=1883, port=1883,
) as client: ) as client:
await client.subscribe('#') await client.subscribe('iot/12ser/#')
async for message in client.messages: async for message in client.messages:
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
loop.create_task(process_mqtt(message)) loop.create_task(process_mqtt(message))