Use UID instead of MAC or channel for unique_ID in Reolink (#119744)
This commit is contained in:
parent
d6be733287
commit
8b4a5042bb
8 changed files with 213 additions and 28 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue