diff --git a/esphome/dashboard/web_server.py b/esphome/dashboard/web_server.py index 2e93fdf0d0..9efd06aaca 100644 --- a/esphome/dashboard/web_server.py +++ b/esphome/dashboard/web_server.py @@ -334,10 +334,10 @@ class EsphomePortCommandWebSocket(EsphomeCommandWebSocket): addresses = [] # First priority: entry.address AKA use_address if ( - entry.address + (use_address := entry.address) and ( address_list := await dashboard.dns_cache.async_resolve( - entry.address, time.monotonic() + use_address, time.monotonic() ) ) and not isinstance(address_list, Exception)