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