From 89f9d64bf53f81d79a03f8f70a48d7f5523268ea Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Oct 2023 10:06:39 -1000 Subject: [PATCH] Add early return check to passive Bluetooth entities listener (#102435) --- homeassistant/components/bluetooth/passive_update_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/bluetooth/passive_update_processor.py b/homeassistant/components/bluetooth/passive_update_processor.py index 7294d55f912..39338e94a77 100644 --- a/homeassistant/components/bluetooth/passive_update_processor.py +++ b/homeassistant/components/bluetooth/passive_update_processor.py @@ -470,7 +470,7 @@ class PassiveBluetoothDataProcessor(Generic[_T]): data: PassiveBluetoothDataUpdate[_T] | None, ) -> None: """Listen for new entities.""" - if data is None: + if data is None or created.issuperset(data.entity_descriptions): return entities: list[PassiveBluetoothProcessorEntity] = [] for entity_key, description in data.entity_descriptions.items():