Skip to content

Commit

Permalink
Fix entity_id is None error #3
Browse files Browse the repository at this point in the history
  • Loading branch information
gcobb321 authored Jul 4, 2024
1 parent 2c3ed75 commit 9d8769d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/icloud3/support/recorder_prefilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9d8769d

Please sign in to comment.