Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iantrich committed Nov 26, 2020
1 parent b2ec95d commit 2da2ee9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/action-handler-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ declare global {
class ActionHandler extends HTMLElement implements ActionHandler {
public holdTime = 500;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
public ripple: any;

protected timer?: number;
Expand Down
20 changes: 15 additions & 5 deletions src/roku-card.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { html, LitElement, TemplateResult, customElement, property, CSSResult, css } from 'lit-element';
import {
html,
LitElement,
TemplateResult,
customElement,
property,
CSSResult,
css,
internalProperty,
} from 'lit-element';
import { HomeAssistant, applyThemesOnElement, hasAction, handleClick } from 'custom-card-helpers';

import { RokuCardConfig } from './types';
Expand All @@ -19,8 +28,9 @@ console.info(

@customElement('roku-card')
export class RokuCard extends LitElement {
@property() public hass?: HomeAssistant;
@property() private _config?: RokuCardConfig;
@property({ attribute: false }) public hass?: HomeAssistant;

@internalProperty() private _config?: RokuCardConfig;

public getCardSize(): number {
return 7;
Expand Down Expand Up @@ -161,8 +171,8 @@ export class RokuCard extends LitElement {
? html`
<ha-icon-button
.app=${this._config.apps[index].app}
icon=${this._config.apps[index].icon}
title=${this._config.apps[index].app}
.icon=${this._config.apps[index].icon}
.title=${this._config.apps[index].app}
.config=${this._config.apps[index]}
@action=${this._handleAction}
.actionHandler=${actionHandler({
Expand Down

0 comments on commit 2da2ee9

Please sign in to comment.