mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.11k stars 669 forks source link

Fix: Blocking call to open sources.json in config_flow initialization #3032

Closed ReneNulschDE closed 4 days ago

ReneNulschDE commented 1 week ago

This is PR tackles the blocking call to load the sources.json in the config_flow initialization. I moved the the _sources and method creation logic out of init.

I'm not sure if this is the best approach. Whenever a new process entry method (other then new, reconfigure) is created, _async_setup_sources needs to be called...

Fixes: #3031

5ila5 commented 4 days ago

Thanks for your contribution