mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 19:09:48 +00:00
Add device actions to automation editor. (#3637)
* Add device actions to automation editor. * Copy automation on selection * Fix types * Remove device from device action schema
This commit is contained in:
committed by
Paulus Schoutsen
parent
f2999c30f3
commit
5448cbf1c5
@@ -7,6 +7,12 @@ export interface EventAction {
|
||||
event_data_template?: { [key: string]: any };
|
||||
}
|
||||
|
||||
export interface DeviceAction {
|
||||
device_id: string;
|
||||
domain: string;
|
||||
entity_id: string;
|
||||
}
|
||||
|
||||
export const triggerScript = (
|
||||
hass: HomeAssistant,
|
||||
entityId: string,
|
||||
|
||||
Reference in New Issue
Block a user