Skip to content

Commit

Permalink
Fix name for last seen sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 committed Apr 27, 2022
1 parent 2b4ffcf commit 2511129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amr2mqtt/rootfs/amr2mqtt/amr2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def send_discovery_messages():
category=CATEGORY_DIAGNOSTIC,
)
last_seen["device_class"] = "timestamp"
last_seen["name"] = "Last Seen"
publish_sensor_discovery(
meter_id=meter_id,
device=device,
Expand Down

0 comments on commit 2511129

Please sign in to comment.