Skip to content

Commit

Permalink
Merge pull request #68 from mdegat01/fix-last-seen-name
Browse files Browse the repository at this point in the history
Fix name for last seen sensor
  • Loading branch information
mdegat01 authored Apr 27, 2022
2 parents 2b4ffcf + fb68816 commit e80bee5
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"] = f"{device_name} Last Seen"
publish_sensor_discovery(
meter_id=meter_id,
device=device,
Expand Down

0 comments on commit e80bee5

Please sign in to comment.