home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.28k forks source link

Mysterious Errors in HA Logs #116858

Open def1149 opened 1 week ago

def1149 commented 1 week ago

The problem

I see errors in the logs that I can't associatewth anything specific

What version of Home Assistant Core has the issue?

2024.5.1

What was the last working version of Home Assistant Core?

??

What type of installation are you running?

Home Assistant OS

Integration causing the issue

??

Link to integration documentation on our website

No response

Diagnostics information

2024-05-05 08:51:06.237 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: handle_state_change() missing 2 required positional arguments: 'old_state' and 'new_state' 2024-05-05 08:51:43.124 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: handle_state_change() missing 2 required positional arguments: 'old_state' and 'new_state'

Example YAML snippet

N/A

Anything in the logs that might be useful for us?

N/A

Additional information

No response

bdraco commented 1 week ago

The only place handle_state_changed appears in core code is, but the signature does not match so it much be a custom component.

homeassistant/components/syncthing/sensor.py:        def handle_state_changed(event):
homeassistant/components/syncthing/sensor.py:                handle_state_changed,
def1149 commented 1 week ago

I've finally traced this to the Home Assistant HACS Zwave keymaster package