mirror of
https://github.com/home-assistant/core.git
synced 2025-06-28 08:57:07 +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,
|
data: PassiveBluetoothDataUpdate[_T] | None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Listen for new entities."""
|
"""Listen for new entities."""
|
||||||
if data is None:
|
if data is None or created.issuperset(data.entity_descriptions):
|
||||||
return
|
return
|
||||||
entities: list[PassiveBluetoothProcessorEntity] = []
|
entities: list[PassiveBluetoothProcessorEntity] = []
|
||||||
for entity_key, description in data.entity_descriptions.items():
|
for entity_key, description in data.entity_descriptions.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user