Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"voluptuous.error.MultipleInvalid: string value is None for dictionary value @ data['device_id']" Errors by core.py #121279

Closed
mihsu81 opened this issue Jul 5, 2024 · 3 comments

Comments

@mihsu81
Copy link

mihsu81 commented Jul 5, 2024

The problem

Since updating to 2024.7.0 I'm getting 20-30 of the bellow errors per second.

Logger: homeassistant
Source: core.py:2696
First occurred: 08:40:13 (4559 occurrences)
Last logged: 08:53:48

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2696, in async_call
    processed_data: dict[str, Any] = handler.schema(service_data)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
    return base_validate(path, iteritems(data), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: string value is None for dictionary value @ data['device_id']

What version of Home Assistant Core has the issue?

Core 2024.7.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Core

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?

Logger: homeassistant
Source: core.py:2696
First occurred: 08:40:13 (4559 occurrences)
Last logged: 08:53:48

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2696, in async_call
    processed_data: dict[str, Any] = handler.schema(service_data)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
    return base_validate(path, iteritems(data), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: string value is None for dictionary value @ data['device_id']

Additional information

No response

@joostlek
Copy link
Member

joostlek commented Jul 5, 2024

How many automations do you have/can you share them?

@mihsu81
Copy link
Author

mihsu81 commented Jul 5, 2024

I have 92 automations and a lot of them have devices included. I'll try disabling them all and re-enable them one by one to find out which one is causing the issue, if you think that's the cause.

@mihsu81
Copy link
Author

mihsu81 commented Jul 5, 2024

Thanks a lot for your suggestion. It helped me identify the cause of the error. It is a PR for Passive BLE Monitor I've added yesterday. custom-components/ble_monitor#1354

@mihsu81 mihsu81 closed this as completed Jul 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants