Use a copy of topics (#29)

Co-authored-by: Meatballs1 <ben.campbell@withsecure.com>
This commit is contained in:
Ben Campbell
2024-03-20 23:16:34 +00:00
committed by GitHub
parent 11bbb5cf5b
commit 3336885325

View File

@@ -116,7 +116,7 @@ def client_connect(client, device, mqtt_topic):
print(now(), device_name, "ERROR", e, file=sys.stderr)
host = device["host"]
device_topics = topics
device_topics = topics.copy()
active_program = False
for value in device["features"]: