Use a copy of topics (#29)
Co-authored-by: Meatballs1 <ben.campbell@withsecure.com>
This commit is contained in:
2
hc2mqtt
2
hc2mqtt
@@ -116,7 +116,7 @@ def client_connect(client, device, mqtt_topic):
|
|||||||
print(now(), device_name, "ERROR", e, file=sys.stderr)
|
print(now(), device_name, "ERROR", e, file=sys.stderr)
|
||||||
|
|
||||||
host = device["host"]
|
host = device["host"]
|
||||||
device_topics = topics
|
device_topics = topics.copy()
|
||||||
active_program = False
|
active_program = False
|
||||||
|
|
||||||
for value in device["features"]:
|
for value in device["features"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user