Use UID instead of MAC or channel for unique_ID in Reolink (#119744)

This commit is contained in:
starkillerOG 2024-06-21 20:27:30 +02:00 committed by GitHub
parent d6be733287
commit 8b4a5042bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 213 additions and 28 deletions

View file

@ -330,8 +330,6 @@ class ReolinkNVRSwitchEntity(ReolinkHostCoordinatorEntity, SwitchEntity):
self.entity_description = entity_description
super().__init__(reolink_data)
self._attr_unique_id = f"{self._host.unique_id}_{entity_description.key}"
@property
def is_on(self) -> bool:
"""Return true if switch is on."""