We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7aa17 commit cf4ecd5Copy full SHA for cf4ecd5
src/roku-card.ts
@@ -68,7 +68,11 @@ export class RokuCard extends LitElement {
68
<ha-card .header="${this._config.name}">
69
<div class="remote">
70
<div class="row">
71
- <div class="app">${stateObj ? stateObj.attributes.app_name : ''}</div>
+ ${stateObj?.attributes?.app_name
72
+ ? html`
73
+ <div class="app">${stateObj.attributes.app_name}</div>
74
+ `
75
+ : ''}
76
${this._config.tv || (this._config.power && this._config.power.show)
77
? this._renderButton('power', 'mdi:power', 'Power')
78
: ''}
0 commit comments