mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 19:09:48 +00:00
Allow automation/script delete (#3194)
This commit is contained in:
@@ -12,3 +12,6 @@ export const triggerScript = (
|
||||
entityId: string,
|
||||
variables?: {}
|
||||
) => hass.callService("script", computeObjectId(entityId), variables);
|
||||
|
||||
export const deleteScript = (hass: HomeAssistant, objectId: string) =>
|
||||
hass.callApi("DELETE", `config/script/config/${objectId}`);
|
||||
|
||||
Reference in New Issue
Block a user