Skip to content

Commit

Permalink
fix: No alues shown in Card for Blades and Wo #167
Browse files Browse the repository at this point in the history
  • Loading branch information
Barma-lej committed Jul 3, 2023
1 parent 05fe809 commit 0ab315e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "landroid-card",
"version": "0.2.8",
"version": "0.2.9",
"description": "Landroid lawnmower card for Home Assistant Lovelace UI",
"main": "dist/landroid-card.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const serverOptions = {
};

export default {
preserveEntrySignatures: 'exports-only',
// preserveEntrySignatures: 'exports-only',
input: 'src/landroid-card.js',
output: {
dir: 'dist',
Expand Down
14 changes: 7 additions & 7 deletions src/landroid-card.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LitElement, html, nothing } from 'lit';
import { hasConfigOrEntityChanged, fireEvent } from 'custom-card-helpers';
// Cannot upgrade - conflict with vacuum-card https://github.com/Barma-lej/landroid-card/issues/163
// import registerTemplates from 'ha-template';
import registerTemplates from 'ha-template';
import get from 'lodash.get';
import localize from './localize';
import styles from './styles';
Expand All @@ -12,18 +12,18 @@ import defaultConfig from './defaults';
import LandroidCardEditor from './landroid-card-editor';

// Cannot upgrade - conflict with vacuum-card https://github.com/Barma-lej/landroid-card/issues/163
if (!customElements.get('ha-template')) {
import('ha-template').then((registerTemplates) => {
registerTemplates();
});
}
// if (!customElements.get('ha-template')) {
// import('ha-template').then((registerTemplates) => {
// registerTemplates();
// });
// }

const editorName = 'landroid-card-editor';
const DEFAULT_LANG = 'en-GB';
customElements.define(editorName, LandroidCardEditor);

// Cannot upgrade - conflict with vacuum-card https://github.com/Barma-lej/landroid-card/issues/163
// registerTemplates();
registerTemplates();

console.info(
`%c LANDROID-CARD %c ${version} `,
Expand Down

0 comments on commit 0ab315e

Please sign in to comment.