Remove deprecated topics

This commit is contained in:
Scott Wallace 2022-12-10 16:24:07 +00:00
parent 8b4878a226
commit a9c854d4d0
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -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),