Fix typo in PassiveBluetoothDataProcessor (#97508)

pull/97475/head^2
J. Nick Koston 2023-07-30 23:56:30 -07:00 committed by GitHub
parent eb56c7e1b7
commit f218fb8cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ class PassiveBluetoothDataProcessor(Generic[_T]):
def async_add_entities_listener(
self,
entity_class: type[PassiveBluetoothProcessorEntity],
async_add_entites: AddEntitiesCallback,
async_add_entities: AddEntitiesCallback,
) -> Callable[[], None]:
"""Add a listener for new entities."""
created: set[PassiveBluetoothEntityKey] = set()
@ -220,7 +220,7 @@ class PassiveBluetoothDataProcessor(Generic[_T]):
entities.append(entity_class(self, entity_key, description))
created.add(entity_key)
if entities:
async_add_entites(entities)
async_add_entities(entities)
return self.async_add_listener(_async_add_or_update_entities)