core: Possibly broken integration with Insteon Hub

The problem

I just upgraded to the 2021.7.1 Core and it may have broken the integration with the Insteon Hub and devices. they all show as unavailable. I have checked with the Insteon app, rebooted the hub, etc and all looks ok on the Insteon side.

What is version of Home Assistant Core has the issue?

2021.7.1

What was the last working version of Home Assistant Core?

2021.7.0

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Insteon

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-07-08 12:22:06 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/protocol.py", line 187, in _write_messages
await self._transport.async_write(msg)
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 110, in async_write
await self._async_write_url(url=url, msg=bytes(data))
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 119, in _async_write_url
await self._read_write_lock
TypeError: object Lock can't be used in 'await' expression
2021-07-08 12:22:07 WARNING (MainThread) [homeassistant.config_entries] Config entry 'CODA-4582U' for upnp integration not ready yet: None; Retrying in background
2021-07-08 12:22:09 WARNING (MainThread) [homeassistant.config_entries] Config entry 'TCL•Roku TV - X00000129SCU' for roku integration not ready yet: Invalid response from API: Error occurred while communicating with device; Retrying in background
2021-07-08 12:23:01 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: insteon
2021-07-08 12:23:10 ERROR (MainThread) [homeassistant.components.insteon] Could not connect to Insteon modem
2021-07-08 12:23:10 WARNING (MainThread) [homeassistant.config_entries] Config entry '' for insteon integration not ready yet: Modem did not respond to ID request; Retrying in background
2021-07-08 12:23:16 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/protocol.py", line 187, in _write_messages
await self._transport.async_write(msg)
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 110, in async_write
await self._async_write_url(url=url, msg=bytes(data))
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 119, in _async_write_url
await self._read_write_lock
TypeError: object Lock can't be used in 'await' expression
2021-07-08 12:24:21 ERROR (MainThread) [homeassistant.components.insteon] Could not connect to Insteon modem
2021-07-08 12:24:31 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/protocol.py", line 187, in _write_messages
await self._transport.async_write(msg)
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 110, in async_write
await self._async_write_url(url=url, msg=bytes(data))
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 119, in _async_write_url
await self._read_write_lock
TypeError: object Lock can't be used in 'await' expression
2021-07-08 12:25:35 ERROR (MainThread) [homeassistant.components.insteon] Could not connect to Insteon modem
2021-07-08 12:25:55 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/protocol.py", line 187, in _write_messages
await self._transport.async_write(msg)
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 110, in async_write
await self._async_write_url(url=url, msg=bytes(data))
File "/usr/local/lib/python3.9/site-packages/pyinsteon/protocol/http_transport.py", line 119, in _async_write_url
await self._read_write_lock
TypeError: object Lock can't be used in 'await' expression

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

The following PR should fix the problem: https://github.com/pyinsteon/pyinsteon/pull/112

how do we apply that fix?

You can do one of the following, depending on your level of expertise and how patient you are: