mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Consider "on" as valid media state (#3020)
This commit is contained in:
parent
5080f4c2db
commit
c95a44c570
@ -37,7 +37,9 @@ export default class MediaPlayerEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get hasMediaControl() {
|
get hasMediaControl() {
|
||||||
return ["playing", "paused", "unknown"].indexOf(this.stateObj.state) !== -1;
|
return (
|
||||||
|
["playing", "paused", "unknown", "on"].indexOf(this.stateObj.state) !== -1
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get volumeSliderValue() {
|
get volumeSliderValue() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user