From 9d8769d850f47f47cbb110856382088c80a82a82 Mon Sep 17 00:00:00 2001 From: Gary Cobb Date: Thu, 4 Jul 2024 10:32:19 +0200 Subject: [PATCH] Fix entity_id is None error #3 --- custom_components/icloud3/support/recorder_prefilter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/icloud3/support/recorder_prefilter.py b/custom_components/icloud3/support/recorder_prefilter.py index 9967c36..ef69435 100644 --- a/custom_components/icloud3/support/recorder_prefilter.py +++ b/custom_components/icloud3/support/recorder_prefilter.py @@ -120,6 +120,8 @@ def entity_filter(entity_id): return False if entity_id in hass.data['recorder_prefilter']['exclude_entities']: return False + if recorder_entity_filter is None: + return False return recorder_entity_filter(entity_id)