Fix not found category

This commit is contained in:
Paul Bottein 2024-03-28 13:45:56 +01:00
parent 960e0dd9e0
commit 35d53f18ae
No known key found for this signature in database

View File

@ -224,6 +224,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)) {