_read_unwanted_data_fix is now controlled via settings

This commit is contained in:
raspberry
2018-02-22 09:39:54 +03:00
parent fadd23e8cd
commit 3e5e71035d
6 changed files with 26 additions and 17 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ if __name__ == "__main__":
client.subscribe("gateway", "+", "write", None)
client.subscribe("plug", "+", "status", "set")
gateway = XiaomiHub(gateway_pass, gateway_ip)
gateway = XiaomiHub(gateway_pass, gateway_ip, config)
stop_event= threading.Event()
t1 = threading.Thread(target=process_gateway_messages, args=[gateway, client, stop_event])
t1.daemon = True