${this._entityId
@@ -363,6 +362,26 @@ class PanelTodo extends LitElement {
showTodoItemEditDialog(this, { entity: this._entityId! });
}
+ private _handleDropdownSelect(ev: CustomEvent<{ item: HaDropdownItem }>) {
+ const action = ev.detail?.item?.value;
+
+ if (!action) {
+ return;
+ }
+
+ switch (action) {
+ case "info":
+ this._showMoreInfoDialog();
+ break;
+ case "assist":
+ this._showVoiceCommandDialog();
+ break;
+ case "delete":
+ this._deleteList();
+ break;
+ }
+ }
+
static get styles(): CSSResultGroup {
return [
haStyle,