Fix startup race in BLE integrations (#75780)

This commit is contained in:
J. Nick Koston 2022-07-26 09:29:23 -10:00 committed by GitHub
parent 157f7292d7
commit 1e85ddabfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 54 additions and 32 deletions

View file

@ -136,12 +136,12 @@ async def async_setup_entry(
data.update(service_info)
)
)
entry.async_on_unload(coordinator.async_register_processor(processor))
entry.async_on_unload(
processor.async_add_entities_listener(
SensorPushBluetoothSensorEntity, async_add_entities
)
)
entry.async_on_unload(coordinator.async_register_processor(processor))
class SensorPushBluetoothSensorEntity(