mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 13:22:19 +01:00
preen
This commit is contained in:
@@ -334,10 +334,10 @@ class EsphomePortCommandWebSocket(EsphomeCommandWebSocket):
|
|||||||
addresses = []
|
addresses = []
|
||||||
# First priority: entry.address AKA use_address
|
# First priority: entry.address AKA use_address
|
||||||
if (
|
if (
|
||||||
entry.address
|
(use_address := entry.address)
|
||||||
and (
|
and (
|
||||||
address_list := await dashboard.dns_cache.async_resolve(
|
address_list := await dashboard.dns_cache.async_resolve(
|
||||||
entry.address, time.monotonic()
|
use_address, time.monotonic()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
and not isinstance(address_list, Exception)
|
and not isinstance(address_list, Exception)
|
||||||
|
Reference in New Issue
Block a user