Consider standby media player as inactive for tile card (#14226)

This commit is contained in:
Paul Bottein 2022-10-31 15:43:16 +01:00 committed by GitHub
parent 9778c0731c
commit 43755deb39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ export function stateActive(stateObj: HassEntity): boolean {
case "person":
return state !== "not_home";
case "media-player":
return state !== "idle";
return state !== "idle" && state !== "standby";
case "vacuum":
return state === "on" || state === "cleaning";
case "plant":