Fix creating card (#4947)

This commit is contained in:
Paulus Schoutsen 2020-02-20 14:47:28 -08:00 committed by GitHub
parent 01eae3876b
commit 22d8ce0fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ export const getLovelaceElementClass = async <
const tag = `hui-${type}-${tagSuffix}`;
const cls = customElements.get(tag);
if (alwaysLoadTypes && type in alwaysLoadTypes) {
if (alwaysLoadTypes && alwaysLoadTypes.has(type)) {
return cls;
}