[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:
Keith Burzinski
2026-06-01 14:18:29 -05:00
committed by GitHub
parent 805aa252d5
commit 4e48682468
4 changed files with 54 additions and 3 deletions

View 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: