mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Update demo camera
This commit is contained in:
parent
6b38462967
commit
68f6c6ae5d
@ -16,7 +16,7 @@
|
|||||||
"author": "Paulus Schoutsen <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
|
"author": "Paulus Schoutsen <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"home-assistant-js": "git+https://github.com/balloob/home-assistant-js.git#04746d8bd48e4f382b54f3c7a6bcc3c5f940d492",
|
"home-assistant-js": "git+https://github.com/balloob/home-assistant-js.git#95b238ca6e548a8d8d998cfa6a55e85b95b4147d",
|
||||||
"lodash": "^3.10.1",
|
"lodash": "^3.10.1",
|
||||||
"moment": "^2.10.6"
|
"moment": "^2.10.6"
|
||||||
},
|
},
|
||||||
|
@ -18,7 +18,7 @@ export default new Polymer({
|
|||||||
|
|
||||||
computeCameraImageUrl(dialogOpen) {
|
computeCameraImageUrl(dialogOpen) {
|
||||||
if (__DEMO__) {
|
if (__DEMO__) {
|
||||||
return 'http://194.218.96.92/jpg/image.jpg';
|
return '/demo/webcam.jpg';
|
||||||
} else if (dialogOpen) {
|
} else if (dialogOpen) {
|
||||||
return '/api/camera_proxy_stream/' + this.stateObj.entityId;
|
return '/api/camera_proxy_stream/' + this.stateObj.entityId;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user