mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 18:06:36 +00:00
fix media-player source selection loop (#1012)
This commit is contained in:
parent
b107e0e15c
commit
421b9abc7d
@ -266,7 +266,7 @@
|
|||||||
supportsPlay: (newVal.attributes.supported_features & 16384) !== 0,
|
supportsPlay: (newVal.attributes.supported_features & 16384) !== 0,
|
||||||
};
|
};
|
||||||
if (newVal.attributes.source_list !== undefined) {
|
if (newVal.attributes.source_list !== undefined) {
|
||||||
props.sourceIndex = newVal.attributes.source_list.indexOf(this.source);
|
props.sourceIndex = newVal.attributes.source_list.indexOf(props.source);
|
||||||
}
|
}
|
||||||
this.setProperties(props);
|
this.setProperties(props);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user