Fix Extend ONVIF unique ID with profile index (#33103)
This commit is contained in:
parent
a7b08c48f3
commit
5893f6b14b
1 changed files with 2 additions and 0 deletions
|
@ -505,4 +505,6 @@ class ONVIFHassCamera(Camera):
|
|||
@property
|
||||
def unique_id(self) -> Optional[str]:
|
||||
"""Return a unique ID."""
|
||||
if self._profile_index:
|
||||
return f"{self._mac}_{self._profile_index}"
|
||||
return self._mac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue