core: EDL21 AttributeError: 'NoneType' object has no attribute 'call_soon'
The problem
Hello,
First of all, the integration works without problems and I can see my power consumption. This is updated about every minute. At some point, however, this is no longer updated and about a minute after the last update I get the following error in the log (see below). When I restart the system, it initially works normally again, until at some point the error reappears irregularly.
What version of Home Assistant Core has the issue?
2022.12.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
EDL21
Link to integration documentation on our website
https://www.home-assistant.io/integrations/edl21/
Diagnostics information
No response
Example YAML snippet
sensor:
- platform: edl21
serial_port: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0046-if00-port0
Anything in the logs that might be useful for us?
Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:97
First occurred: 06:22:14 (1 occurrences)
Last logged: 06:22:14
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/sml/asyncio.py", line 109, in _reconnect
await self._disconnect()
File "/usr/local/lib/python3.10/site-packages/sml/asyncio.py", line 140, in _disconnect
self._transport.abort()
File "/usr/local/lib/python3.10/site-packages/serial_asyncio/__init__.py", line 192, in abort
self._abort(None)
File "/usr/local/lib/python3.10/site-packages/serial_asyncio/__init__.py", line 396, in _abort
self._loop.call_soon(self._call_connection_lost, exc)
AttributeError: 'NoneType' object has no attribute 'call_soon'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (3 by maintainers)
@moritzbeck01 or @StephanU It would be nice when you could pull this new pysml-Version to the EDL21-Integration. Thanks in advance! 😃