Olen / lovelace-flower-card

Lovelace Flower Card to match the custom plant integration
https://github.com/Olen/homeassistant-plant/
160 stars 28 forks source link

The main 'lit-element' module entrypoint is deprecated. #95

Open Olen opened 7 months ago

Olen commented 7 months ago

The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.

$ grep -R lit * editor.ts:import { customElement, html } from "lit-element"; flower-card.ts:import { CSSResult, HTMLTemplateResult, LitElement, customElement, html, property } from 'lit-element'; styles.ts:import { css } from 'lit'; utils/attributes.ts:import { TemplateResult, html } from "lit-element"; utils/attributes.ts:import { unsafeHTML } from 'lit/directives/unsafe-html.js';

shennig84 commented 6 months ago

How do we do this?

chemelli74 commented 6 months ago

Just noticed on my side as well:

image

Olen commented 4 months ago

I am in no way an expert on ts, js or all these magic things. There seems to be some changes that probably needs to be taken care of.

https://lit.dev/docs/v2/releases/upgrade/

If anyone feel up for it, please create a PR

chemelli74 commented 1 month ago

What about updating the components to the last version ? Ref. https://github.com/lit/lit/pull/4663