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:
@@ -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));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user