Add support for target to automation call service action (#8372)

This commit is contained in:
Bram Kragten
2021-02-16 21:46:47 +01:00
committed by GitHub
parent acefa39796
commit 99eff73b0d
25 changed files with 719 additions and 382 deletions

View File

@@ -1,6 +1,7 @@
import {
HassEntityAttributeBase,
HassEntityBase,
HassServiceTarget,
} from "home-assistant-js-websocket";
import { computeObjectId } from "../common/entity/compute_object_id";
import { navigate } from "../common/navigate";
@@ -36,6 +37,7 @@ export interface EventAction {
export interface ServiceAction {
service: string;
entity_id?: string;
target?: HassServiceTarget;
data?: Record<string, any>;
}