Skip to content

Commit

Permalink
feat: print version in console
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Aug 17, 2021
1 parent abd7ade commit 7610929
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/purifier-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import { hasConfigOrEntityChanged, fireEvent } from 'custom-card-helpers';
import './purifier-card-editor';
import localize from './localize';
import styles from './styles';
import { version } from '../package.json';

console.info(
`%c PURIFIER-CARD %c ${version}`,
'color: white; background: blue; font-weight: 700;',
'color: blue; background: white; font-weight: 700;'
);

if (!customElements.get('ha-icon-button')) {
customElements.define(
Expand All @@ -13,7 +20,6 @@ if (!customElements.get('ha-icon-button')) {

const SUPPORT_SET_SPEED = 1;
const SUPPORT_PRESET_MODE = 8;

class PurifierCard extends LitElement {
static get properties() {
return {
Expand Down

0 comments on commit 7610929

Please sign in to comment.