From 07f091059c9f59c46b2905c76f69dcfd95fabe85 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 19 Aug 2026 17:23:25 -0500 Subject: [PATCH] [web_server] Match the blank page remedy to the actual cause --- esphome/components/web_server/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esphome/components/web_server/__init__.py b/esphome/components/web_server/__init__.py index 112162adf6..f19ba8f206 100644 --- a/esphome/components/web_server/__init__.py +++ b/esphome/components/web_server/__init__.py @@ -411,8 +411,10 @@ def _final_validate_ap_mode(config: ConfigType) -> None: _LOGGER.warning( "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 " - "blank. Remove 'local: false', or migrate off version 1, so the interface " - "is embedded in the firmware." + "blank. %s so the interface 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: ap_ip = "192.168.4.1"