mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add support for toggle card feature for automation domain (#24452)
This commit is contained in:
parent
81bafba4e4
commit
209d0ae5f4
@ -27,9 +27,14 @@ import type { ToggleCardFeatureConfig } from "./types";
|
||||
|
||||
export const supportsToggleCardFeature = (stateObj: HassEntity) => {
|
||||
const domain = computeDomain(stateObj.entity_id);
|
||||
return ["switch", "input_boolean", "light", "fan", "siren", "valve"].includes(
|
||||
domain
|
||||
);
|
||||
return [
|
||||
"switch",
|
||||
"input_boolean",
|
||||
"light",
|
||||
"fan",
|
||||
"siren",
|
||||
"automation",
|
||||
].includes(domain);
|
||||
};
|
||||
|
||||
const DOMAIN_ICONS: Record<string, { on: string; off: string }> = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user