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

View File

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