import { LitElement, html, unsafeCSS } from "lit"; import panelTokens from "../../../custom_components/nestquest/www/nestquest-panel-tokens.css?inline"; import { registerCustomCard, type CardConfig, type HassLike } from "../types"; export class NestQuestQuestLogCard extends LitElement { static properties = { hass: { attribute: false }, _config: { state: true }, }; static styles = [unsafeCSS(panelTokens)]; hass?: HassLike; _config?: CardConfig; setConfig(config: CardConfig): void { if (!config || typeof config !== "object") { throw new Error("Invalid configuration"); } this._config = config; } getCardSize(): number { return 8; } render() { return html`
NestQuest Quest Log
`; } } customElements.define("nestquest-quest-log-card", NestQuestQuestLogCard); registerCustomCard({ type: "nestquest-quest-log-card", name: "NestQuest Quest Log", description: "One child's daily quests, grouped by window.", });