mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Fix creating card (#4947)
This commit is contained in:
parent
01eae3876b
commit
22d8ce0fd9
@ -191,7 +191,7 @@ export const getLovelaceElementClass = async <
|
|||||||
const tag = `hui-${type}-${tagSuffix}`;
|
const tag = `hui-${type}-${tagSuffix}`;
|
||||||
const cls = customElements.get(tag);
|
const cls = customElements.get(tag);
|
||||||
|
|
||||||
if (alwaysLoadTypes && type in alwaysLoadTypes) {
|
if (alwaysLoadTypes && alwaysLoadTypes.has(type)) {
|
||||||
return cls;
|
return cls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user