Skip to content

Instantly share code, notes, and snippets.

@thomasloven
thomasloven / my-custom-card.js
Last active April 16, 2024 08:44
Simplest custom card
// Simplest possible custom card
// Does nothing. Doesn't look like anything
class MyCustomCard extends HTMLElement {
setConfig(config) {
// The config object contains the configuration specified by the user in ui-lovelace.yaml
// for your card.
// It will minimally contain:
// config.type = "custom:my-custom-card"