Display choose option alias if configured (#17429)

This commit is contained in:
karwosts 2023-08-01 00:39:32 -07:00 committed by GitHub
parent 76388114aa
commit 3c62f5597a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,9 @@ export class HaChooseAction extends LitElement implements ActionElement {
}
private _getDescription(option, idx: number) {
if (option.alias) {
return option.alias;
}
if (this.isExpanded(idx)) {
return "";
}