Open JakobEgPedersen opened 8 months ago
Each sensor is created with the instance of a region that exists at launch. https://github.com/J-Lindvig/Pollen_DK/blob/97d12984156198b3631fa789b2f017201923d921/custom_components/pollen_dk/sensor.py#L49-L54
pollen_DK.update replaces all the region instance with new ones but the sensors keep looking at the original https://github.com/J-Lindvig/Pollen_DK/blob/97d12984156198b3631fa789b2f017201923d921/custom_components/pollen_dk/pollen_dk_api.py#L33-L37
I have the same problem - any fixes ?
Same - Any fix for this?
Each sensor is created with the instance of a region that exists at launch.
pollen_DK.update replaces all the region instance with new ones but the sensors keep looking at the original
Jesper LL what are you trying to say? Should it work, or are there something that I can change in the code myself to make it work? Fact is that it only updates at HA restart. I have tried various attempts to make it refrest, but only works at restart.
I'm saying the code is written incorrectly and will never update correctly as-is My python skills are unfortunately quite "read only" and so all I could do was point at the problem - not the solution ¯\(ツ)/¯
The integration works fine, but only updates when HA is restarted. I have tried to make a service call in an automation to reload the integration, like I also do for other integrations, but cannot find this integration in automation. Is it supposed to automatically pull new data every day, or only when a service call is made? I can see others on Facebook DK HA group are having same issue.