A little background: I used to use TV Remote Card (GitHub - marrobHD/tv-card: 📺 TV Remote Card) from hacs and I loved it. But since latest hass update it stopped showing buttons and the developer has not responded yet. So I switched to Roku Card from hacs too (GitHub - iantrich/roku-card: 📺 Roku Remote Card) and just customized it to function the same.
But I really don’t like some of the icon choices, so I dived into it’s inner working (I have some codding experience) and managed to come up with the way I think it works: There are “renderButton” functions that have 3 arguments, one of wich is the icon: this._renderButton('power', 'mdi:power', 'Power')
the first one appears on line 73 of this code roku-card/roku-card.ts at e6d229e02472572017e7a3c1fb8734b2f47b7df3 · iantrich/roku-card · GitHub
One would assume that changing mdi:something
for mdi:somethingElse
, saving the file and reloading frontend would work, but it changes nothing.
I have no experience codding on JavaScript, so I don’t know if editing www/community/roku-card/roku-card.js
and saving it should work, or if I’m making some kind of mistake on the code, or just haven’t found the way to make hass reload the file to see the changes.
I would love if someone with more experience on JS or custom components points me in the right direction