mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Fix Extend ONVIF unique ID with profile index (#33103)
This commit is contained in:
parent
470537bc5f
commit
78e5878247
@ -505,4 +505,6 @@ class ONVIFHassCamera(Camera):
|
|||||||
@property
|
@property
|
||||||
def unique_id(self) -> Optional[str]:
|
def unique_id(self) -> Optional[str]:
|
||||||
"""Return a unique ID."""
|
"""Return a unique ID."""
|
||||||
|
if self._profile_index:
|
||||||
|
return f"{self._mac}_{self._profile_index}"
|
||||||
return self._mac
|
return self._mac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user