From 68fa7b9847075aab6ecf58008a047d574093c53b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 17 Oct 2026 15:20:00 -1000 Subject: [PATCH] [wifi] Test the wifi.connected and wifi.enabled conditions (#20841) --- tests/components/wifi/common.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/components/wifi/common.yaml b/tests/components/wifi/common.yaml index 10a8a61c661..63bd820e673 100644 --- a/tests/components/wifi/common.yaml +++ b/tests/components/wifi/common.yaml @@ -14,6 +14,14 @@ esphome: condition: wifi.ap_active then: - logger.log: "WiFi AP is active!" + - if: + condition: wifi.connected + then: + - logger.log: "WiFi is connected!" + - if: + condition: wifi.enabled + then: + - logger.log: "WiFi is enabled!" - wifi.roam wifi: