mirror of
https://github.com/home-assistant/core.git
synced 2025-06-26 07:57:12 +00:00
Add early return check to passive Bluetooth entities listener (#102435)
This commit is contained in:
parent
f626f3bc1e
commit
89f9d64bf5
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user