Closed elupus closed 1 month ago
Pytz will load timezone info from files in a lazy fashion on first access. This triggers warnings in HA due to it blocking the event loop.
Pre-load the needed timezone info at module import instead, which will run in executor in HA.
Fixes #156
Thanks! I will make a new build soon
https://github.com/ndokter/dsmr_parser/issues/154
Would be nice to fix this one as well. I can do a PR if it's desired
Pytz will load timezone info from files in a lazy fashion on first access. This triggers warnings in HA due to it blocking the event loop.
Pre-load the needed timezone info at module import instead, which will run in executor in HA.
Fixes #156