Kibibit / kb-steam-card

A Home Assistant card for Steam integrations
MIT License
25 stars 7 forks source link

Issue? Is this how the kb-steam-card should look like? #20

Closed mkanet closed 1 year ago

mkanet commented 1 year ago

Description of problem:

Is my card not working correctly or is it supposed to look like the below screenshot? It doesn't look like any of the screenshots on the main page of this Github. There's a hyphen character where I would expect the sensor state to be displayed:

Screenshot 06-30-2023 at 09 07 50 PM

PS: Also, I've never see this card actually display the game background in a single-entity steam card. Is that because the Steam integration in Home Assistant needs to be updated?

EDIT: I was able to fix this by changing line 189 in kb-steam-card.js from:

<div class="kb-steam-value">${i.attributes.game||"-"}</div>

to

<div class="kb-steam-value">${i.attributes.game||i.state}</div>

image

mkanet commented 1 year ago

PS: Also, it didn't make much sense to me that the color red indicates someone being online. I changed it to green. It is now also compatible with the Roblox HA Integration! Thanks for making this possible.

9