lukas-clarke / eight_sleep

Home Assistant Eight Sleep integration that works with Eight Sleep's new API and OAUTH2
MIT License
107 stars 19 forks source link

Blocking call detected by HA #67

Closed kapstaad closed 2 weeks ago

kapstaad commented 2 weeks ago

This appeared in the system log after updating HA Core to 2004.10.4. It could have been happening before, but I was checking the logs today after the Core update, and its the first time I've seen the error:

"2024-10-26 10:35:24.806 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pytz/zoneinfo/Africa/Abidjan', 'rb') inside the event loop by custom integration 'eight_sleep' at custom_components/eight_sleep/pyEight/eight.py, line 193: timezone = pytz.timezone(self.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/lukas-clarke/eight_sleep/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open"

FWIW I live in Georgia, USA (not Abidjan, Africa?!) and my HA is set to the Eastern time zone.

lukas-clarke commented 2 weeks ago

This is fixed in the latest release