api structure cleaning 1

This commit is contained in:
matt committed 2026-10-14 01:23:39 -07:00
1 parent a8eb4866eb
commit 87cd24234a
2 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -152,12 +152,13 @@ def get_sensor_details(friendly_date = False):
first_seen = ts_to_pst_string(sensor.first_seen)
last_seen = ts_to_pst_string(sensor.last_seen)
# print(f"Summary - {sensor.name}")
sensor_dict = sensor.to_dict()
new_sensor = {
"name": sensor.name,
"first_seen": first_seen,
"last_seen": last_seen,
"comment": sensor.comment,
"data": sensor.to_dict()
**sensor_dict
}
sensor_list.append(new_sensor)