Add unique_id to canary camera (#40054)
This commit is contained in:
parent
15281f468e
commit
cacbb2eb12
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,11 @@ class CanaryCamera(Camera):
|
|||
"""Return the name of this device."""
|
||||
return self._device.name
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return the unique ID of this camera."""
|
||||
return str(self._device.device_id)
|
||||
|
||||
@property
|
||||
def is_recording(self):
|
||||
"""Return true if the device is recording."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue