Comments (8)
I would use the official importer coming in v0.116.
from boilerplate-card.
Workaround thanks to @thomasloven.
In src/boilerplate-card.ts
add the following lines topublic static async getConfigElement(): Promise<LovelaceCardEditor>
(before the return)
(await window.loadCardHelpers()).createCardElement({ type: 'entities', entities: [] });
await customElements.get('hui-entities-card').getConfigElement();
from boilerplate-card.
Yeah I'll probably take a look this weekend to update unless someone beats me to it with a PR.
from boilerplate-card.
The importer will load some elements, namely the ones that are used in more-info dialogs.
The getConfigElement
thing will load elements that are used in card editors.
It's actually the best way we have found to get at them, and is the unofficially official method.
from boilerplate-card.
Which will also require your helpers as well? If so, I wouldn't want my cards relying on other custom cards.
from boilerplate-card.
No. It uses window.loadCardHelpers()
which is shipped with lovelace, just like the more-info importer does.
from boilerplate-card.
Yes there is the "custom" custom card helpers package and the core ones for loading/creating
from boilerplate-card.
Fixed in https://github.com/custom-cards/boilerplate-card/releases/tag/1.2.0
from boilerplate-card.
Related Issues (20)
- " and handle the changes/suggestions HOT 1
- Support for templating HOT 6
- Update template to use lastest version of custom-card-helpers HOT 5
- Better documentation HOT 1
- Undefined entity when loading Card HOT 3
- Localize fails to detect language if not set on this device HOT 6
- Error when removing config properties HOT 1
- Request: Upgrade lit-element to lit? HOT 1
- Outdated Prettier version breaks on part of the card file and doesn't auto-format HOT 1
- This is undefined
- UI Editor HOT 3
- you are still relying on mwc elementes to be defined globally by HA HOT 7
- Add the ability to use sliders
- Changes not being detected
- `container start` fails - " unable to connect to github.com" - Replace `git://` by `https://` ? HOT 3
- Code Splitting problem when building HOT 1
- Installing Home Assistant in devcontainer fails HOT 1
- Bring the boilerplate-card to a modern version HOT 1
- add info.md and hacs.json HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boilerplate-card.