Skip to content

Commit

Permalink
Merge pull request #147 from chemelli74/chemelli74-lit
Browse files Browse the repository at this point in the history
fix: remove lit-element and lit-html
  • Loading branch information
Olen authored Oct 3, 2024
2 parents 63fc1d1 + 9fafc7d commit 8a9944b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 34 deletions.
36 changes: 7 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"custom-card-helpers": "^1.9.0",
"home-assistant-js-websocket": "^8.0.1",
"lit": "^2.8.0",
"lit-element": "^3.3.3",
"lit-html": "^2.8.0",
"webpack": ">=5.94.0",
"yarn": "^1.22.19"
},
Expand Down
3 changes: 2 additions & 1 deletion src/editor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { customElement, html } from "lit-element";
import { html } from 'lit';
import { customElement } from "lit/decorators.js";
import { DisplayType } from "./types/flower-card-types";
import { default_show_bars, plantAttributes } from "./utils/constants";
import EditorForm from "@marcokreeft/ha-editor-formbuilder";
Expand Down
3 changes: 2 additions & 1 deletion src/flower-card.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CSSResult, HTMLTemplateResult, LitElement, customElement, html, property } from 'lit-element';
import { CSSResult, HTMLTemplateResult, LitElement, html } from 'lit';
import {customElement, property } from 'lit/decorators.js';
import { HomeAssistant, LovelaceCardEditor } from 'custom-card-helpers';
import { style } from './styles';
import { DisplayType, FlowerCardConfig, HomeAssistantEntity, PlantInfo } from './types/flower-card-types';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/attributes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import { HomeAssistant } from "custom-card-helpers";
import { DisplayType, DisplayedAttribute, DisplayedAttributes, Icons, Limits, UOM, UOMT } from "../types/flower-card-types";
import { TemplateResult, html } from "lit-element";
import { TemplateResult, html } from "lit";
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { default_show_bars } from "./constants";
import { moreInfo } from "./utils";
Expand Down

0 comments on commit 8a9944b

Please sign in to comment.