Fix startup race in BLE integrations (#75780)
This commit is contained in:
parent
157f7292d7
commit
1e85ddabfd
14 changed files with 54 additions and 32 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue