Allow automation/script delete (#3194)

This commit is contained in:
Paulus Schoutsen
2019-05-16 17:44:46 +02:00
committed by GitHub
parent 087c3b9c0e
commit be0bef3f1b
6 changed files with 55 additions and 8 deletions

View File

@@ -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}`);