[web_server] Match the blank page remedy to the actual cause

This commit is contained in:
J. Nick Koston
2026-08-19 17:23:25 -05:00
parent 2807a6932b
commit 07f091059c
+4 -2
View File
@@ -411,8 +411,10 @@ def _final_validate_ap_mode(config: ConfigType) -> None:
_LOGGER.warning( _LOGGER.warning(
"WiFi is AP only and the web_server interface is loaded from the internet, " "WiFi is AP only and the web_server interface is loaded from the internet, "
"which browsers on the access point usually cannot reach; the page stays " "which browsers on the access point usually cannot reach; the page stays "
"blank. Remove 'local: false', or migrate off version 1, so the interface " "blank. %s so the interface is embedded in the firmware.",
"is embedded in the firmware." "Remove 'local: false'"
if config.get(CONF_LOCAL) is False
else "Migrate to version 2 or 3",
) )
elif config[CONF_PORT] != 80: elif config[CONF_PORT] != 80:
ap_ip = "192.168.4.1" ap_ip = "192.168.4.1"