Răsfoiți Sursa

Rename combined_state unique IDs to closed_locked

ZiB 4 luni în urmă
părinte
comite
4ccd634dc3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      custom_components/zlock_slots/sensor.py

+ 2 - 2
custom_components/zlock_slots/sensor.py

@@ -239,7 +239,7 @@ class ZLockCombinedStateSensor(_ZLockBaseSensor):
 
   def __init__(self, coordinator, entry, lock_entity_id, device_info=None):
     super().__init__(coordinator, entry, lock_entity_id, device_info)
-    self._attr_unique_id = f"{entry.entry_id}_{lock_entity_id}_combined_state"
+    self._attr_unique_id = f"{entry.entry_id}_{lock_entity_id}_closed_locked"
 
   @property
   def name(self) -> str:
@@ -286,7 +286,7 @@ class ZLockGroupCombinedStateSensor(_ZLockGroupBaseSensor):
   def __init__(self, coordinator, entry, group_name, group_lock_ids: list[str]):
     super().__init__(coordinator, entry, group_name)
     self._group_lock_ids = group_lock_ids
-    self._attr_unique_id = f"{entry.entry_id}_group_{group_name}_combined_state"
+    self._attr_unique_id = f"{entry.entry_id}_group_{group_name}_closed_locked"
 
   @property
   def native_value(self) -> str | None: