custom-components / sensor.avanza_stock

Custom component to get stock data from Avanza for Home Assistant
MIT License
46 stars 10 forks source link

Attributes unknown in the info retrieved #149

Closed matzzzz closed 1 year ago

matzzzz commented 1 year ago

Hi, Since a few months ago, the attributes in the retrieved data have been unknown (see below snip) I thought it was som problem with my installation, but now I have tried it on another HA instans and get the same result. I'm happy for any help :-) Best regards Matz

avanza-attribute-issue
claha commented 1 year ago

Yes the api has changed (#145) and the returned data has a different structure to it, the names of the attributes are based on the old api and its data structure. So to allow the old monitored_conditions I (or someone else) needs to create a lookup table, for know I have just made the state work.

I currently don't have much time for this and I would really like to stop patching this integration and instead create a new one that is part of homeassistant

claha commented 1 year ago

Just released v1.1.0 that uses the new api. State and the change/changePercent attributes should at least work now :slight_smile:

Please let me know if you find issues!