From 166bcc06875a09c6bbe9b687492776d97afa2f94 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 24 Apr 2017 20:51:03 -0700 Subject: [PATCH] Recorder: Check for ENTITY_ID key that contains None value (#7287) --- homeassistant/components/recorder/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 7e31523f7d1..04322646f80 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -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