[safe_mode] Allow user-defined interval for successful boot (#3930)

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
NMartin354 2024-06-11 19:38:24 -05:00 committed by GitHub
parent 9356f4fcfa
commit 66ab69f13f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,8 @@ Configuration variables:
- **disabled** (*Optional*, boolean): Set to ``true`` to disable safe_mode. :doc:`/components/ota` automatically sets
up safe mode; this allows disabling it if/when it is not wanted.
- **boot_is_good_after** (*Optional*, :ref:`config-time`): The amount of time after which the boot is considered successful.
Defaults to ``1min``.
- **num_attempts** (*Optional*, int): The number of failed boot attempts which must occur before invoking safe mode.
Defaults to ``10``.
- **reboot_timeout** (*Optional*, :ref:`config-time`): The amount of time to wait before rebooting when in safe mode.