Add unique_id to canary camera (#40054)

This commit is contained in:
Chris Talkington 2020-09-14 10:41:05 -05:00 committed by GitHub
parent 15281f468e
commit cacbb2eb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""