Fix selecting no category message (#20268)

This commit is contained in:
Paul Bottein 2024-03-29 15:41:05 +01:00 committed by GitHub
parent e5c43fcfcd
commit 11cf2ec39d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,6 +226,8 @@ export class HaCategoryPicker extends SubscribeMixin(LitElement) {
if (newValue === NO_CATEGORIES_ID) {
newValue = "";
this.comboBox.setInputValue("");
return;
}
if (![ADD_NEW_SUGGESTION_ID, ADD_NEW_ID].includes(newValue)) {