mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
Entity badges show entity_picture
This commit is contained in:
@@ -78,7 +78,6 @@ export default new Polymer({
|
||||
computeIcon(state) {
|
||||
switch (state.domain) {
|
||||
case 'device_tracker':
|
||||
return !state.attributes.entity_picture && domainIcon(state.domain);
|
||||
case 'alarm_control_panel':
|
||||
case 'scene':
|
||||
case 'script':
|
||||
@@ -94,12 +93,7 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
computeImage(state) {
|
||||
switch (state.domain) {
|
||||
case 'device_tracker':
|
||||
return state.attributes.entity_picture;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
return state.attributes.entity_picture;
|
||||
},
|
||||
|
||||
computeLabel(state) {
|
||||
|
||||
Reference in New Issue
Block a user