mirror of
https://github.com/home-assistant/core.git
synced 2025-06-05 13:47:06 +00:00
Recorder: Check for ENTITY_ID key that contains None value (#7287)
This commit is contained in:
parent
17bdb9558a
commit
335362ffc4
@ -246,8 +246,8 @@ class Recorder(threading.Thread):
|
||||
self.queue.task_done()
|
||||
continue
|
||||
|
||||
if ATTR_ENTITY_ID in event.data:
|
||||
entity_id = event.data[ATTR_ENTITY_ID]
|
||||
entity_id = event.data.get(ATTR_ENTITY_ID)
|
||||
if entity_id is not None:
|
||||
domain = split_entity_id(entity_id)[0]
|
||||
|
||||
# Exclude entities OR
|
||||
|
Loading…
x
Reference in New Issue
Block a user