OTA Safemode
Describe the problem you have/What new integration you would like Problem: On Some of my devices, doing an OTA update without rebooting them in safemode is either slow or aborts.
Feature Request: Adding a flag to the OTA component, so the Dashboard/CLI reboots the esp in safemode, waits for device, and then updates it.
Please describe your use case for this integration and alternatives you've tried: Currently i restart them manually via HomeAssistant and then make the update in the Dashboard
Additional context
See also https://github.com/esphome/feature-requests/issues/1764
Sometimes the linking can take so long that the device goes out of safe mode, meaning you have to try and 'time' it by enabling safe mode just before the linking finishes. It's very tedious and I'd love to see that automated. I wonder if the on_begin hook could be used ?
See https://esphome.io/components/ota.html#configuration-variables
Increase your reboot_timeout as needed.