jnimmo / hass-intesishome

Experimental fork of the IntesisHome integration for Home Assistant
19 stars 11 forks source link

Error connecting to IntesisHome - TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop' #10

Open evilalmus opened 1 year ago

evilalmus commented 1 year ago

I added this custom integration and went through the config flow. I am able to access my device at 'https://accloud.intesis.com/panel' so I know my authentication information is correct.

Here is the error in my log:

This error originated from a custom integration.

Logger: custom_components.intesishome.config_flow
Source: custom_components/intesishome/config_flow.py:126
Integration: IntesisHome
First occurred: 12:03:18 PM (1 occurrences)
Last logged: 12:03:18 PM

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/intesishome/config_flow.py", line 126, in async_step_details
    await controller.connect()
  File "/usr/local/lib/python3.11/site-packages/pyintesishome/intesisbox.py", line 57, in connect
    self._reader, self._writer = await asyncio.open_connection(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/streams.py", line 48, in open_connection
    transport, _ = await loop.create_connection(
                         ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop'