core: Shelly Unexpected error fetching shelly data

The problem

Getting some error messages in the log relating to my shelly switches. 2020-12-06 07:32:03 ERROR (MainThread) [homeassistant.components.shelly] Unexpected error fetching

Environment

I am new to HA and using standard kit with shelly integration. running unraid, with HA in a VM

  • Home Assistant Core release with the issue: Home Assistant 0.118.5
  • Last working Home Assistant Core release (if known): not sure. Latest stable is what i’m running.
  • Operating environment (OS/Container/Supervised/Core): unraid, VM
  • Integration causing this issue: shelly
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml


Traceback/Error logs

2020-12-06 07:32:03 ERROR (MainThread) [homeassistant.components.shelly] Unexpected error fetching shellyswitch25-8CAAB54CD0BC data: 'NoneType' object has no attribute 'call_exception_handler'
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 1048, in sendto
    self._sock.sendto(data, addr)
AttributeError: 'NoneType' object has no attribute 'sendto'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 144, in async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 138, in _async_update_data
    return await self.device.update()
  File "/usr/local/lib/python3.8/site-packages/aioshelly/__init__.py", line 221, in update
    event = await self.coap_request("s")
  File "/usr/local/lib/python3.8/site-packages/aioshelly/__init__.py", line 273, in coap_request
    await self.coap_context.request(self.ip_address, path)
  File "/usr/local/lib/python3.8/site-packages/aioshelly/coap.py", line 76, in request
    self.transport.sendto(msg, (ip, 5683))
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 1058, in sendto
    self._fatal_error(
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 705, in _fatal_error
    self._loop.call_exception_handler({
AttributeError: 'NoneType' object has no attribute 'call_exception_handler'
2020-12-06 07:32:07 ERROR (MainThread) [homeassistant.components.shelly] Unexpected error fetching Mini-me data: 'NoneType' object has no attribute 'call_exception_handler'
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 1048, in sendto
    self._sock.sendto(data, addr)
AttributeError: 'NoneType' object has no attribute 'sendto'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 144, in async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/shelly/__init__.py", line 138, in _async_update_data
    return await self.device.update()
  File "/usr/local/lib/python3.8/site-packages/aioshelly/__init__.py", line 221, in update
    event = await self.coap_request("s")
  File "/usr/local/lib/python3.8/site-packages/aioshelly/__init__.py", line 273, in coap_request
    await self.coap_context.request(self.ip_address, path)
  File "/usr/local/lib/python3.8/site-packages/aioshelly/coap.py", line 76, in request
    self.transport.sendto(msg, (ip, 5683))
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 1058, in sendto
    self._fatal_error(
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 705, in _fatal_error
    self._loop.call_exception_handler({
AttributeError: 'NoneType' object has no attribute 'call_exception_handler'


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

I have checked and this PR is already merged and released in 2021.1.0 version. This is the version i’m using and timeouts are still happening, so it didn’t fix the issue unfortunatelly

Sorry but this issue is about error fetching data, not about timeouts.

Simone