1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00
This commit is contained in:
J. Nick Koston
2025-07-31 20:05:34 -10:00
parent 204da1af8b
commit 42fe7d9fb2

View File

@@ -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)