From 42fe7d9fb24ff6b4df41e4ffa28e67791a88d4b9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 31 Jul 2025 20:05:34 -1000 Subject: [PATCH] preen --- esphome/dashboard/web_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)