Skip to content

Commit

Permalink
Merge pull request #53 from iantrich/iantrich-patch-1
Browse files Browse the repository at this point in the history
fix tap_action for app icons
  • Loading branch information
iantrich committed Oct 20, 2020
2 parents 634ce0a + 79297eb commit dd6c601
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/roku-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ export class RokuCard extends LitElement {
<ha-card .header="${this._config.name}">
<div class="remote">
<div class="row">
<div class="app">
${stateObj ? stateObj.attributes.app_name : ''}
</div>
<div class="app">${stateObj ? stateObj.attributes.app_name : ''}</div>
${this._config.tv || (this._config.power && this._config.power.show)
? this._renderButton('power', 'mdi:power', 'Power')
: ''}
Expand Down Expand Up @@ -162,8 +160,9 @@ 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({
hasHold: hasAction(this._config.apps[index].hold_action),
Expand Down

0 comments on commit dd6c601

Please sign in to comment.