Skip to content

Commit 23a8cce

Browse files
ekobresCopilot
andauthored
Update custom_components/spook/ectoplasms/homeassistant/services/list_filtered_entities.py
Co-authored-by: Copilot <[email protected]>
1 parent 78a3765 commit 23a8cce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/spook/ectoplasms/homeassistant/services/list_filtered_entities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ def _matches_basic_filters(
452452
integrations = filters.get("integrations")
453453
if integrations and entity_entry.platform not in integrations:
454454
return False
455-
if labels_filter := filters.get("labels"):
455+
labels_filter = filters.get("labels")
456+
if labels_filter:
456457
entity_label_ids = {
457458
label["label_id"] for label in entity_data.get("labels", [])
458459
}

0 commit comments

Comments
 (0)