mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add unique_id to canary camera (#40054)
This commit is contained in:
parent
15281f468e
commit
cacbb2eb12
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user