Closed OzGav closed 3 months ago
There appears to be more data provided in the log now:
Logger: homeassistant.util.loop Source: util/loop.py:84 First occurred: 13:01:15 (650 occurrences) Last logged: 13:01:49
Detected blocking call to open inside the event loop by custom integration 'bureau_of_meteorology' at custom_components/bureau_of_meteorology/sensor.py, line 237: tzinfo = pytz.timezone(self.collector.locations_data["data"]["timezone"]) (offender: /usr/local/lib/python3.12/site-packages/pytz/init.py, line 108: return open(filename, 'rb')), please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues Traceback (most recent call last): File "
Yes, there have been changes to Home Assistant to detect this. Many third party integrations suffer from it. Your post is off topic here.
I'm getting the same error. Why it is off topic?
Because it had nothing to do with this bureau_of_meteorology integration. It was for a completely different integration. You report the warning (not error) in the github repository that caused it, not a completely unrelated one.
Thanks for your quick reply.
I'm really sorry but I don't understand your comment "it had nothing to do with this bureau_of_meteorology Integration" when the error states "please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues"
Sorry I thought you were the other person who's comment has since been deleted.
This identical error also just started occurring in another custom integration that I use.
Conversation in this issue may privide clues;
[BJReplay/ha-solcast-solar#14](https://github.com/BJReplay/ha-solcast-solar/issues/14)
As you can see, they had an issue with the solcast not BoM integration.
OK, thanks for the explanation.
Fix by release 1.3.2. Thanks @dbiczo
Warning in logs noticed with HA 2024.6.0b1
Detected blocking call to open inside the event loop by custom integration 'bureau_of_meteorology' at custom_components/bureau_of_meteorology/sensor.py, line 237: tzinfo = pytz.timezone(self.collector.locations_data["data"]["timezone"]) (offender: /usr/local/lib/python3.12/site-packages/pytz/init.py, line 108: return open(filename, 'rb')), please create a bug report at https://github.com/bremor/bureau_of_meteorology/issues