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