Skip to content

Commit

Permalink
Recorder: Check for ENTITY_ID key that contains None value (#7287)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Apr 25, 2017
1 parent 41a803a commit 166bcc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/recorder/__init__.py
Expand Up @@ -246,8 +246,8 @@ def do_purge(now):
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
Expand Down

0 comments on commit 166bcc0

Please sign in to comment.