custom-components / sensor.avanza_stock

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

Works for Handelsbanken B stock, but not for Handelsbanken A stock #175

Closed MichaelBrimer closed 4 months ago

MichaelBrimer commented 5 months ago

This is my configuration sensor:

It works for 5265, but does not works for 5264 5264 is Handelsbanken A, and 5265 is Handelsbanken B

claha commented 5 months ago

Just tried it and I had no problems. What version og home assistant and avanza_stock. Can you provid som logs or something

MichaelBrimer commented 4 months ago

Hi I have played with it and now I can get it to work. Looking in "Developer tools", states, entity, I realised that for some strange reason, I had sensor.handelsbanken, sensor.handelsbanken_2, sensor.handelsbanken_3. I do not understand this, it seems as it is some kind of cashed stuff? Anyway, then I tried with this configuration and it now works.

claha commented 4 months ago

I think that happens when the unique id is reused, which is not possible. It used to only be based on the stock id but now it includes the name as well. Happy you got it working!