From a9c854d4d0006cb351c1f5cc2b600c192c4e11c6 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 10 Dec 2022 16:24:07 +0000 Subject: [PATCH] Remove deprecated topics --- get_data.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/get_data.py b/get_data.py index 3cae87c..c35b94d 100644 --- a/get_data.py +++ b/get_data.py @@ -41,18 +41,6 @@ def send_to_mqtt(data: MQTTdata) -> None: """ msgs = [ - { - "topic": f"sensors/home/{data['mac']}/temperature", - "payload": data["temperature"], - }, - { - "topic": f"sensors/home/{data['mac']}/humidity", - "payload": data["humidity"], - }, - { - "topic": f"sensors/home/{data['mac']}/battery", - "payload": data["battery"], - }, { "topic": f"sensors/home/{data['mac']}/tele/SENSOR", "payload": json.dumps(data),