-
- [[stateObj.entityDisplay]]
+
+
+ [[stateObj.entityDisplay]]
+
+ (Error loading image)
+
+
diff --git a/src/cards/ha-camera-card.js b/src/cards/ha-camera-card.js
index 2c77bbc40a..6970be4a51 100644
--- a/src/cards/ha-camera-card.js
+++ b/src/cards/ha-camera-card.js
@@ -18,6 +18,11 @@ export default new Polymer({
type: String,
},
+ imageLoaded: {
+ type: Boolean,
+ value: true,
+ },
+
/**
* The z-depth of the card, from 0-5.
*/
@@ -49,4 +54,12 @@ export default new Polymer({
const time = (new Date()).getTime();
this.cameraFeedSrc = `${stateObj.attributes.entity_picture}?time=${time}`;
},
+
+ imageLoadSuccess() {
+ this.imageLoaded = true;
+ },
+
+ imageLoadFail() {
+ this.imageLoaded = false;
+ },
});