Closed cjb0001 closed 3 months ago
Are you looking for the track icon or the chapter icon? I haven't seen the difference in my yoto yet but maybe I don't have a card that has that.
For reference will be from here once we pick: https://github.com/cdnninja/yoto_api/blob/master/yoto_api/Card.py I don't think I populate track icon yet.
I have created the code to parse all the track and chapter data into the object listed above: https://github.com/cdnninja/yoto_api/pull/59
That is first step. Next we can easily display that data.
I corrected this. It will now only show if data exists.
Would you mind also adding the 16x16 icon attribute? I couldn't figure out how to reference the icon from the currently playing chapter/track. It will need to be added as an "extra_state_attribute". Here are some examples of how other media_player integrations have done this. Seems like state check before returning the icon is the right thing to do. Thanks