Skip to content

Commit

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

0 comments on commit fb68816

Please sign in to comment.