lievencoghe / cambridge_cxn

Home Assistant Custom Component for controlling Cambridge Audio CXNv2 network streamers
12 stars 11 forks source link

Detected I/O inside the event loop. #1

Open HaBeMe opened 4 years ago

HaBeMe commented 4 years ago

Hi, the integration is working great, and this is a lifesaver for me as I am depending on HA states to turn on my poweramps via node-red.

I am getting the following error message from the HA logs.

Error Message: Please report issue to the custom component author for cambridge_cxn doing I/O at custom_components/cambridge_cxn/media_player.py, line 198: "http://" + self._host + "/smoip/presets/list"

Additionally the custom component was not able to run without any presets on the CXN V2. I do not know if these could be related. It crapped out on line 122 of media_player.py where it could not iterate over a none_type. As soon as I set a preset the custom component started working. But there it seems there is still some unwanted behavior as logged in HA event logs (see above)