mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Changed behaviour of selecting base entity. (#735)
This commit is contained in:
parent
0b9bd62251
commit
ea16ebd4f0
@ -73,7 +73,7 @@ class MoreInfoGroup extends Polymer.Element {
|
||||
var el;
|
||||
|
||||
if (states && states.length > 0) {
|
||||
baseStateObj = states[0];
|
||||
baseStateObj = states.find(s => s.state === 'on') || states[0];
|
||||
|
||||
groupDomainStateObj = Object.assign({}, baseStateObj, {
|
||||
entity_id: stateObj.entity_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user