Add persistent_notification trigger (#16967)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
RoboMagus
2023-06-21 11:55:55 +02:00
committed by GitHub
parent b46c74fe76
commit 9b35c06eef
9 changed files with 157 additions and 0 deletions

View File

@@ -127,6 +127,12 @@ export interface WebhookTrigger extends BaseTrigger {
local_only?: boolean;
}
export interface PersistentNotificationTrigger extends BaseTrigger {
platform: "persistent_notification";
notification_id?: string;
update_type?: string[];
}
export interface ZoneTrigger extends BaseTrigger {
platform: "zone";
entity_id: string;
@@ -174,6 +180,7 @@ export type Trigger =
| SunTrigger
| TimePatternTrigger
| WebhookTrigger
| PersistentNotificationTrigger
| ZoneTrigger
| TagTrigger
| TimeTrigger