mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 08:46:01 +00:00
Fix dashboard ip resolving (#7747)
This commit is contained in:
@@ -320,12 +320,12 @@ class EsphomePortCommandWebSocket(EsphomeCommandWebSocket):
|
||||
and "api" in entry.loaded_integrations
|
||||
):
|
||||
if (mdns := dashboard.mdns_status) and (
|
||||
address := await mdns.async_resolve_host(entry.name)
|
||||
address_list := await mdns.async_resolve_host(entry.name)
|
||||
):
|
||||
# Use the IP address if available but only
|
||||
# if the API is loaded and the device is online
|
||||
# since MQTT logging will not work otherwise
|
||||
port = address
|
||||
port = address_list[0]
|
||||
elif (
|
||||
entry.address
|
||||
and (
|
||||
|
||||
Reference in New Issue
Block a user