1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00
This commit is contained in:
Paulus Schoutsen
2019-07-31 12:25:30 -07:00
parent da05dfe708
commit 4de97abc3a
2676 changed files with 163166 additions and 140084 deletions

View File

@@ -51,12 +51,12 @@ class AugustCamera(Camera):
@property
def brand(self):
"""Return the camera brand."""
return 'August'
return "August"
@property
def model(self):
"""Return the camera model."""
return 'Doorbell'
return "Doorbell"
def camera_image(self):
"""Return bytes of camera image."""
@@ -64,12 +64,13 @@ class AugustCamera(Camera):
if self._image_url is not latest.image_url:
self._image_url = latest.image_url
self._image_content = requests.get(self._image_url,
timeout=self._timeout).content
self._image_content = requests.get(
self._image_url, timeout=self._timeout
).content
return self._image_content
@property
def unique_id(self) -> str:
"""Get the unique id of the camera."""
return '{:s}_camera'.format(self._doorbell.device_id)
return "{:s}_camera".format(self._doorbell.device_id)