mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[factory_reset] Allow factory reset by rapid power cycle (#9749)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
button:
|
||||
- platform: factory_reset
|
||||
name: Reset to Factory Default Settings
|
||||
|
||||
factory_reset:
|
||||
resets_required: 5
|
||||
max_delay: 10s
|
||||
|
||||
1
tests/components/factory_reset/test.bk72xx-ard.yaml
Normal file
1
tests/components/factory_reset/test.bk72xx-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
||||
@@ -1 +1,4 @@
|
||||
esp8266:
|
||||
restore_from_flash: true
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
<<: !include common.yaml
|
||||
button:
|
||||
- platform: factory_reset
|
||||
name: Reset to Factory Default Settings
|
||||
|
||||
Reference in New Issue
Block a user