mirror of
https://github.com/esphome/esphome.git
synced 2026-08-24 07:06:20 +00:00
Request OTA state listeners from the backend that uses them
This commit is contained in:
@@ -92,6 +92,10 @@ async def _esp32_register(backend: cg.MockObj, config: ConfigType) -> None:
|
||||
|
||||
|
||||
async def _rp2_register(backend: cg.MockObj, config: ConfigType) -> None:
|
||||
from esphome.components import ota
|
||||
|
||||
# The backend drops its link when an OTA starts (esp32 tracker parity).
|
||||
ota.request_ota_state_listeners()
|
||||
# More than one backend outgrows the prebuilt BTstack pools: swap them for
|
||||
# the ESPHOME_BLE_GATT_CLIENT_COUNT-sized ones in rp2040_ble's
|
||||
# btstack_memory.cpp. Keyed to backend registrations (the same event that
|
||||
|
||||
Reference in New Issue
Block a user