Giter VIP home page Giter VIP logo

Comments (8)

ljmerza avatar ljmerza commented on July 20, 2024 1

I would use the official importer coming in v0.116.

from boilerplate-card.

tomvanswam avatar tomvanswam commented on July 20, 2024

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.

iantrich avatar iantrich commented on July 20, 2024

Yeah I'll probably take a look this weekend to update unless someone beats me to it with a PR. 😉

from boilerplate-card.

thomasloven avatar thomasloven commented on July 20, 2024

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.

ljmerza avatar ljmerza commented on July 20, 2024

Which will also require your helpers as well? If so, I wouldn't want my cards relying on other custom cards.

from boilerplate-card.

thomasloven avatar thomasloven commented on July 20, 2024

No. It uses window.loadCardHelpers() which is shipped with lovelace, just like the more-info importer does.

from boilerplate-card.

iantrich avatar iantrich commented on July 20, 2024

Yes there is the "custom" custom card helpers package and the core ones for loading/creating

from boilerplate-card.

iantrich avatar iantrich commented on July 20, 2024

Fixed in https://github.com/custom-cards/boilerplate-card/releases/tag/1.2.0

from boilerplate-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.