Update frontend

This commit is contained in:
Paulus Schoutsen committed 2016-05-27 01:29:48 -07:00
1 parent d02bc3deaa
commit cd87c40bbf
5 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ STATE_RECORDING = 'recording'
STATE_STREAMING = 'streaming'
STATE_IDLE = 'idle'
ENTITY_IMAGE_URL = '/api/camera_proxy/{0}'
ENTITY_IMAGE_URL = '/api/camera_proxy/{0}?token={1}'
# pylint: disable=too-many-branches
@@ -65,7 +65,7 @@ class Camera(Entity):
@property
def entity_picture(self):
"""Return a link to the camera feed as entity picture."""
return ENTITY_IMAGE_URL.format(self.entity_id)
return ENTITY_IMAGE_URL.format(self.entity_id, self.access_token)
@property
def is_recording(self):