PTST / O365-HomeAssistant

Office 365 integration for Home Assistant
MIT License
69 stars 13 forks source link

Error: I/O must be done in the executor #112

Open krubottom opened 3 years ago

krubottom commented 3 years ago

Hello, when attempting to setup I get the error message below after trying to link.

Logger: O365.connection Source: /usr/local/lib/python3.8/site-packages/O365/connection.py:509 First occurred: 7:22:03 AM (1 occurrences) Last logged: 7:22:03 AM

Unable to fetch auth token. Error: I/O must be done in the executor; Use await hass.async_add_executor_job() at custom_components/o365/init.py, line 159: self.account.con.request_token(

krubottom commented 3 years ago

I also get the error below:

Logger: homeassistant.util.async Source: util/async.py:131 First occurred: 7:49:40 AM (2 occurrences) Last logged: 7:54:40 AM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for o365 doing I/O at custom_components/o365/init.py, line 159: self.account.con.request_token(

ryanm7780 commented 3 years ago

Did anyone find a solution to this?

krubottom commented 3 years ago

I had to change to the alternate authentication flow.

Talvien commented 3 years ago

Same issue here