From 366e55a4b979a610a39b5f11c71d69f48c6ff945 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 9 Oct 2024 11:16:21 +0200 Subject: [PATCH] Fix persistent notification trigger schema (#3234) --- .../src/schemas/integrations/triggers.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/language-service/src/schemas/integrations/triggers.ts b/src/language-service/src/schemas/integrations/triggers.ts index 6e52979ca7..9e8b935ad2 100644 --- a/src/language-service/src/schemas/integrations/triggers.ts +++ b/src/language-service/src/schemas/integrations/triggers.ts @@ -63,7 +63,7 @@ type EventType = | "zha_event"; type AllowedMethods = "POST" | "PUT" | "GET" | "HEAD"; -type PersistentNotificationUpdateType = "added" | "removed"; +type PersistentNotificationUpdateType = "added" | "updated" | "removed"; interface CalendarTrigger { /** @@ -553,6 +553,13 @@ interface PersistentNotificationTrigger { */ enabled?: boolean; + /** + * An personal identifier for this trigger, that is passed into the trigger + * variables when the automation triggers using this trigger. + * https://www.home-assistant.io/docs/automation/trigger/#persistent-notification-trigger + */ + id?: string; + /** * Define the type of persistent notification to trigger on. * https://www.home-assistant.io/docs/automation/trigger/#persistent-notification-trigger