@@ -134,10 +134,10 @@ export class RokuCard extends LitElement {
134134 padding: 16px 0px 16px 0px;
135135 }
136136 img,
137- ha-icon-button {
137+ ha-icon {
138138 cursor: pointer;
139139 }
140- ha-icon-button {
140+ ha-icon {
141141 --mdc-icon-button-size: 64px;
142142 --mdc-icon-size: 48px;
143143 }
@@ -171,15 +171,16 @@ export class RokuCard extends LitElement {
171171 ? html `
172172 < ha-icon-button
173173 .app =${ this . _config . apps [ index ] . app }
174- .icon =${ this . _config . apps [ index ] . icon }
175174 .title =${ this . _config . apps [ index ] . app }
176175 .config=${ this . _config . apps [ index ] }
177176 @action=${ this . _handleAction }
178177 .actionHandler=${ actionHandler ( {
179178 hasHold : hasAction ( this . _config . apps [ index ] . hold_action ) ,
180179 hasDoubleClick : hasAction ( this . _config . apps [ index ] . double_tap_action ) ,
181180 } ) }
182- > </ ha-icon-button >
181+ >
182+ < ha-icon .icon =${ this . _config . apps [ index ] . icon } > </ ha-icon >
183+ </ ha-icon-button >
183184 `
184185 : html `
185186 < img
@@ -194,7 +195,7 @@ export class RokuCard extends LitElement {
194195 />
195196 `
196197 : html `
197- < ha-icon-button > </ ha-icon-button >
198+ < ha-icon icon =" mdi:none " > </ ha-icon >
198199 ` ;
199200 }
200201
@@ -203,26 +204,28 @@ export class RokuCard extends LitElement {
203204 const config = this . _config [ button ] ;
204205 return config && config . show === false
205206 ? html `
206- < ha-icon-button > </ ha-icon-button >
207+ < ha-icon icon =" mdi:none " > </ ha-icon >
207208 `
208209 : html `
209210 < ha-icon-button
210211 .button =${ button }
211- icon =${ icon }
212212 title =${ title }
213213 @action=${ this . _handleAction }
214214 .actionHandler=${ actionHandler ( {
215215 hasHold : config && hasAction ( config . hold_action ) ,
216216 hasDoubleClick : config && hasAction ( config . double_tap_action ) ,
217217 } ) }
218- > </ ha-icon-button >
218+ >
219+ < ha-icon .icon =${ icon } > </ ha-icon >
220+ </ ha-icon-button >
219221 ` ;
220222 } else {
221223 return html `` ;
222224 }
223225 }
224226
225227 private _handleAction ( ev ) : void {
228+ console . log ( 'click' ) ;
226229 if ( this . hass && this . _config && ev . detail . action ) {
227230 const button = ev . currentTarget . button ;
228231 const config = this . _config [ button ] || ev . currentTarget . config ;
0 commit comments