From 23b8139d24e1139497b1643021797d294f16521a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 10 Nov 2025 14:31:26 -0600 Subject: [PATCH] fix defaults --- esphome/components/wifi/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/wifi/__init__.py b/esphome/components/wifi/__init__.py index a58e673a8c..5856442877 100644 --- a/esphome/components/wifi/__init__.py +++ b/esphome/components/wifi/__init__.py @@ -214,9 +214,9 @@ def _apply_min_auth_mode_default(config): "If your router supports WPA2 or WPA3, no action is needed - the new default will be more secure. " "If your router only supports WPA, explicitly set 'min_auth_mode: WPA' to maintain compatibility." ) - config[CONF_MIN_AUTH_MODE] = "WPA" + config[CONF_MIN_AUTH_MODE] = WifiMinAuthMode.WIFI_MIN_AUTH_MODE_WPA elif CORE.is_esp32: - config[CONF_MIN_AUTH_MODE] = "WPA2" + config[CONF_MIN_AUTH_MODE] = WifiMinAuthMode.WIFI_MIN_AUTH_MODE_WPA2 return config