Access the most recent clip/snapshot by holding down the menu button.

This commit is contained in:
Dermot Duffy
2021-10-30 01:34:32 -07:00
parent 409f48137d
commit 1844f94dd1
4 changed files with 70 additions and 42 deletions
+7 -1
View File
@@ -358,7 +358,8 @@ const internalMenuIconSchema = z.object({
title: z.string(),
icon: z.string().optional(),
emphasize: z.boolean().default(false).optional(),
card_action: z.string(),
tap_action: z.string(),
hold_action: z.string().optional(),
});
const menuButtonSchema = z.union([
@@ -400,6 +401,11 @@ export interface Message {
icon?: string;
}
export interface MenuInteraction {
interaction: "hold" | "tap" | "double_tap",
button: MenuButton,
}
/**
* Home Assistant API types.
*/