From f10c04b00624581feaf57c703be1f43695c674d5 Mon Sep 17 00:00:00 2001 From: Daniel Chesterton Date: Fri, 31 Dec 2021 03:14:37 +0000 Subject: [PATCH] fix: ensure entity_id is correct for Storage Used % entity --- src/amcrest2mqtt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amcrest2mqtt.py b/src/amcrest2mqtt.py index 33586c7..7e921f7 100644 --- a/src/amcrest2mqtt.py +++ b/src/amcrest2mqtt.py @@ -348,6 +348,7 @@ if home_assistant: "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", },