core: AttributeError: 'list' object has no attribute 'split'

The problem

HA 2021.5.0b1 throws this indescribtive error in the logs, and I really do not have an idea where it is coming from

AttributeError: ‘list’ object has no attribute ‘split’

What is version of Home Assistant Core has the issue?

core-2021.5.0b1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Google Assistant

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_assistant/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.core
Source: core.py:117
First occurred: 18:07:07 (8 occurrences)
Last logged: 21:22:02

Error in event filter
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 717, in async_fire
    if not event_filter(event):
  File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 367, in _async_event_filter
    return bool(entity_id is None or self.entity_filter(entity_id))
  File "/usr/src/homeassistant/homeassistant/helpers/entityfilter.py", line 169, in entity_filter_2
    domain = split_entity_id(entity_id)[0]
  File "/usr/src/homeassistant/homeassistant/core.py", line 117, in split_entity_id
    return entity_id.split(".", 1)
AttributeError: 'list' object has no attribute 'split'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 19 (17 by maintainers)

Most upvoted comments

ok … the issue is caused by changes from #49449 entity_id is overall assumed to be of type str, but with the change above it contains a list[str]

cc @balloob

Please enable debug logging for google_assistant and start listening to google_assistant_sync events via Development tools -> Events from UI.