Add alt tags to camera

This commit is contained in:
Paulus Schoutsen 2016-06-08 22:41:02 -07:00
parent 612a876199
commit 8d84b3c63a
2 changed files with 3 additions and 3 deletions

View File

@ -36,8 +36,8 @@
}
</style>
<template>
<img src='[[cameraFeedSrc]]' class='camera-feed' hidden$='[[!imageLoaded]]'
on-load='imageLoadSuccess' on-error='imageLoadFail'>
<img src='[[cameraFeedSrc]]' class='camera-feed' hidden='[[!imageLoaded]]'
on-load='imageLoadSuccess' on-error='imageLoadFail' alt='[[stateObj.entityDisplay]]'>
<div class='caption'>
[[stateObj.entityDisplay]]
<template is='dom-if' if='[[!imageLoaded]]'>

View File

@ -13,7 +13,7 @@
<template>
<img class='camera-image' src="[[computeCameraImageUrl(hass, stateObj)]]"
on-load='imageLoaded' />
on-load='imageLoaded' alt='[[stateObj.entityDisplay]]' />
</template>
</dom-module>