From 923d7f64e99f9389f5db59fc0eff6d50fafa7508 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 23 Mar 2024 10:11:33 +0100 Subject: [PATCH] Fix detecting empty device IDs (#669) --- custom_components/spook/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/spook/util.py b/custom_components/spook/util.py index cf9871d2..66ee4eb0 100644 --- a/custom_components/spook/util.py +++ b/custom_components/spook/util.py @@ -176,7 +176,7 @@ def async_filter_known_device_ids( return { device_id for device_id in device_ids - known_device_ids - if isinstance(device_id, str) + if device_id and isinstance(device_id, str) }