Skip to content

integration calling async_dispatcher_connect with None #111797

@Anto79-ops

Description

@Anto79-ops

The problem

hello,

updating to 2024.3.0b0 and these logs appear several times:

2024-02-28 20:26:15.411 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 183, in coro_wrapper
    return await target
           ^^^^^^^^^^^^
TypeError: object NoneType can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 185, in coro_wrapper
    log_exception(format_err, *args)
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 101, in log_exception
    friendly_msg = format_err(*args)
                   ^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 205, in <lambda>
    target.__name__,
    ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
2024-02-28 20:26:15.417 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 183, in coro_wrapper
    return await target
           ^^^^^^^^^^^^
TypeError: object NoneType can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 185, in coro_wrapper
    log_exception(format_err, *args)
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 101, in log_exception
    friendly_msg = format_err(*args)
                   ^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 205, in <lambda>
    target.__name__,
    ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
2024-02-28 20:26:15.424 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 183, in coro_wrapper
    return await target
           ^^^^^^^^^^^^
TypeError: object NoneType can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 185, in coro_wrapper
    log_exception(format_err, *args)
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 101, in log_exception
    friendly_msg = format_err(*args)
                   ^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 205, in <lambda>
    target.__name__,
    ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
2024-02-28 20:26:15.430 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 183, in coro_wrapper
    return await target
           ^^^^^^^^^^^^
TypeError: object NoneType can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 185, in coro_wrapper
    log_exception(format_err, *args)
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 101, in log_exception
    friendly_msg = format_err(*args)
                   ^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 205, in <lambda>
    target.__name__,
    ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
2024-02-28 20:26:15.437 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 183, in coro_wrapper
    return await target
           ^^^^^^^^^^^^
TypeError: object NoneType can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 185, in coro_wrapper
    log_exception(format_err, *args)
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 101, in log_exception
    friendly_msg = format_err(*args)
                   ^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/logging.py", line 205, in <lambda>
    target.__name__,
    ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?

CC @bd

What version of Home Assistant Core has the issue?

2024.3.0b0

What was the last working version of Home Assistant Core?

2024.2.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions