mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Add calendar event end trigger to automation editor (#12389)
This commit is contained in:
parent
36d30266e3
commit
958a1de2fd
@ -154,7 +154,7 @@ export interface EventTrigger extends BaseTrigger {
|
|||||||
|
|
||||||
export interface CalendarTrigger extends BaseTrigger {
|
export interface CalendarTrigger extends BaseTrigger {
|
||||||
platform: "calendar";
|
platform: "calendar";
|
||||||
event: "start";
|
event: "start" | "end";
|
||||||
entity_id: string;
|
entity_id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,12 @@ export class HaCalendarTrigger extends LitElement implements TriggerElement {
|
|||||||
"ui.panel.config.automation.editor.triggers.type.calendar.start"
|
"ui.panel.config.automation.editor.triggers.type.calendar.start"
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
"end",
|
||||||
|
localize(
|
||||||
|
"ui.panel.config.automation.editor.triggers.type.calendar.end"
|
||||||
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
@ -1754,7 +1754,8 @@
|
|||||||
"calendar": {
|
"calendar": {
|
||||||
"label": "Calendar",
|
"label": "Calendar",
|
||||||
"event": "[%key:ui::panel::config::automation::editor::triggers::type::homeassistant::event%]",
|
"event": "[%key:ui::panel::config::automation::editor::triggers::type::homeassistant::event%]",
|
||||||
"start": "Event Start"
|
"start": "Event Start",
|
||||||
|
"end": "Event End"
|
||||||
},
|
},
|
||||||
"device": {
|
"device": {
|
||||||
"label": "Device",
|
"label": "Device",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user