Remove deprecated topics
This commit is contained in:
parent
8b4878a226
commit
a9c854d4d0
12
get_data.py
12
get_data.py
|
@ -41,18 +41,6 @@ def send_to_mqtt(data: MQTTdata) -> None:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
msgs = [
|
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",
|
"topic": f"sensors/home/{data['mac']}/tele/SENSOR",
|
||||||
"payload": json.dumps(data),
|
"payload": json.dumps(data),
|
||||||
|
|
Loading…
Reference in a new issue