mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:27:14 +00:00
[wifi] Defer esp_wifi_init() to lazy-init so enable_on_boot: false actually saves RAM (#16606)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
15
tests/components/wifi/test-lifecycle.esp32-idf.yaml
Normal file
15
tests/components/wifi/test-lifecycle.esp32-idf.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
enable_on_boot: false
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
priority: 200
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
not:
|
||||
wifi.enabled:
|
||||
then:
|
||||
- wifi.enable:
|
||||
Reference in New Issue
Block a user