Skip to content

Commit c32444b

Browse files
Squazelbramkragten
authored andcommitted
Fix picture-glance card icon styling for unavailable/unknown entities (#26352)
1 parent 11c6b90 commit c32444b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/panels/lovelace/cards/hui-picture-glance-card.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ import type {
3030
} from "./types";
3131
import type { PersonEntity } from "../../../data/person";
3232

33-
const STATES_OFF = new Set(["closed", "locked", "not_home", "off"]);
33+
const STATES_OFF = new Set([
34+
"closed",
35+
"locked",
36+
"not_home",
37+
"off",
38+
"unavailable",
39+
"unknown",
40+
]);
3441

3542
@customElement("hui-picture-glance-card")
3643
class HuiPictureGlanceCard extends LitElement implements LovelaceCard {

0 commit comments

Comments
 (0)