mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +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 {
|
import {
|
||||||
ActionConfig,
|
ActionConfig,
|
||||||
LovelaceCardConfig,
|
LovelaceCardConfig,
|
||||||
LovelaceViewConfig,
|
LovelaceViewConfig,
|
||||||
ShowViewConfig,
|
ShowViewConfig,
|
||||||
} from "../../../data/lovelace";
|
} 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 { EntityId } from "../common/structs/is-entity-id";
|
||||||
import { Icon } from "../common/structs/is-icon";
|
import { Icon } from "../common/structs/is-icon";
|
||||||
|
import { EntityConfig } from "../entity-rows/types";
|
||||||
|
|
||||||
export interface YamlChangedEvent extends Event {
|
export interface YamlChangedEvent extends Event {
|
||||||
detail: {
|
detail: {
|
||||||
@ -85,6 +85,9 @@ export const entitiesConfigStruct = union([
|
|||||||
secondary_info: optional(string()),
|
secondary_info: optional(string()),
|
||||||
format: optional(string()),
|
format: optional(string()),
|
||||||
state_color: optional(boolean()),
|
state_color: optional(boolean()),
|
||||||
|
tap_action: optional(actionConfigStruct),
|
||||||
|
hold_action: optional(actionConfigStruct),
|
||||||
|
double_tap_action: optional(actionConfigStruct),
|
||||||
}),
|
}),
|
||||||
EntityId,
|
EntityId,
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user