mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Add actions to entities config struct (#7063)
This commit is contained in:
parent
b4d34d9085
commit
24b390ba03
@ -1,13 +1,13 @@
|
||||
import { boolean, object, optional, string, union } from "superstruct";
|
||||
import {
|
||||
ActionConfig,
|
||||
LovelaceCardConfig,
|
||||
LovelaceViewConfig,
|
||||
ShowViewConfig,
|
||||
} from "../../../data/lovelace";
|
||||
import { EntityConfig } from "../entity-rows/types";
|
||||
import { optional, string, object, union, boolean } from "superstruct";
|
||||
import { EntityId } from "../common/structs/is-entity-id";
|
||||
import { Icon } from "../common/structs/is-icon";
|
||||
import { EntityConfig } from "../entity-rows/types";
|
||||
|
||||
export interface YamlChangedEvent extends Event {
|
||||
detail: {
|
||||
@ -85,6 +85,9 @@ export const entitiesConfigStruct = union([
|
||||
secondary_info: optional(string()),
|
||||
format: optional(string()),
|
||||
state_color: optional(boolean()),
|
||||
tap_action: optional(actionConfigStruct),
|
||||
hold_action: optional(actionConfigStruct),
|
||||
double_tap_action: optional(actionConfigStruct),
|
||||
}),
|
||||
EntityId,
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user