Fix Entities picker (#11802)

This commit is contained in:
Zack Barett 2022-02-23 10:18:56 -06:00 committed by GitHub
parent b341ee9d38
commit 5d8b3227f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ class HaEntitiesPickerLight extends LitElement {
const newValue = event.detail.value; const newValue = event.detail.value;
if ( if (
newValue === curValue || newValue === curValue ||
(newValue !== "" && !isValidEntityId(newValue)) (newValue !== undefined && !isValidEntityId(newValue))
) { ) {
return; return;
} }
@ -147,7 +147,7 @@ class HaEntitiesPickerLight extends LitElement {
} }
static override styles = css` static override styles = css`
ha-entity-picker { div {
margin-top: 8px; margin-top: 8px;
} }
`; `;