core: Solaredge intergration stopped working 102.3 upgrade

After upgrading to 102.3 the solaredge intergragtion stopped working, the sensors are unavailable.

Error log:

Error while setting up platform solaredge
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/solaredge/sensor.py", line 35, in async_setup_entry
    api.get_details, entry.data[CONF_SITE_ID]
  File "/usr/src/homeassistant/homeassistant/core.py", line 343, in async_add_executor_job
    task = self.loop.run_in_executor(None, target, *args)
  File "uvloop/loop.pyx", line 2647, in uvloop.loop.Loop.run_in_executor
  File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 162, in iscoroutinefunction
    return (inspect.iscoroutinefunction(func) or
  File "/usr/local/lib/python3.7/inspect.py", line 185, in iscoroutinefunction
    object.__code__.co_flags & CO_COROUTINE)
AttributeError: 'functools._lru_cache_wrapper' object has no attribute '__code__'

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 18 (1 by maintainers)

Commits related to this issue

Most upvoted comments

@rayzorben have you had the possibility to check if 0.103 fixed the issue? They have removed the uvloop import you discovered (see #29835 (comment))

Jep it’s working again !