1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-24 10:51:01 +01:00

Don't show toggle always on more info (#11640)

This commit is contained in:
Zack Barett
2022-02-14 09:21:46 -06:00
committed by GitHub
parent 806b1296b0
commit 63c9b3f830
3 changed files with 28 additions and 4 deletions

View File

@@ -10,6 +10,10 @@ describe("canToggleState", () => {
turn_off: null,
},
},
states: {
"light.bla": { entity_id: "light.bla" },
"light.test": { entity_id: "light.test" },
},
};
it("Detects lights toggle", () => {
@@ -24,7 +28,11 @@ describe("canToggleState", () => {
const stateObj: any = {
entity_id: "group.bla",
state: "on",
attributes: {
entity_id: ["light.bla", "light.test"],
},
};
assert.isTrue(canToggleState(hass, stateObj));
});