Update ref to esp8266 restore_from_flash (#1957)

This commit is contained in:
Trick van Staveren 2022-04-13 23:32:24 -05:00 committed by GitHub
parent 19fe3ed714
commit fa2f486cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,8 @@ Configuration variables:
- **name** (**Required**, string): The name for the switch. - **name** (**Required**, string): The name for the switch.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- **restore_mode** (*Optional*): Control how the GPIO Switch attempts to restore state on bootup. - **restore_mode** (*Optional*): Control how the GPIO Switch attempts to restore state on bootup.
For restoring on ESP8266s, also see ``esp8266_restore_from_flash`` in the For restoring on ESP8266s, also see ``restore_from_flash`` in the
:doc:`esphome section </components/esphome>`. :doc:`esp8266 section </components/esp8266>`.
- ``RESTORE_DEFAULT_OFF`` (Default) - Attempt to restore state and default to OFF if not possible to restore. - ``RESTORE_DEFAULT_OFF`` (Default) - Attempt to restore state and default to OFF if not possible to restore.
- ``RESTORE_DEFAULT_ON`` - Attempt to restore state and default to ON. - ``RESTORE_DEFAULT_ON`` - Attempt to restore state and default to ON.