Skip to content

Commit

Permalink
fix: ensure entity_id is correct for Storage Used % entity
Browse files Browse the repository at this point in the history
  • Loading branch information
dchesterton committed Dec 31, 2021
1 parent 5014f70 commit f10c04b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amcrest2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def signal_handler(sig, frame):
"unit_of_measurement": "%",
"icon": "mdi:micro-sd",
"name": f"{device_name} Storage Used %",
"object_id": f"{device_slug}_storage_used_percent",
"unique_id": f"{serial_number}.storage_used_percent",
"entity_category": "diagnostic",
},
Expand Down

0 comments on commit f10c04b

Please sign in to comment.