1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[wifi] Conditionally compile on_connect/on_disconnect triggers (#13684)

This commit is contained in:
J. Nick Koston
2026-02-03 04:29:18 +01:00
committed by GitHub
parent 9f1a427ce2
commit d41c84d624
6 changed files with 40 additions and 16 deletions

View File

@@ -26,3 +26,7 @@ wifi:
- ssid: MySSID3
password: password3
priority: 0
on_connect:
- logger.log: "WiFi connected!"
on_disconnect:
- logger.log: "WiFi disconnected!"