mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 14:18:14 +00:00
tweak
This commit is contained in:
parent
369ed65447
commit
e405618c81
@ -277,8 +277,8 @@ class EsphomePortCommandWebSocket(EsphomeCommandWebSocket):
|
||||
if (
|
||||
port == "OTA"
|
||||
and (mdns := dashboard.mdns_status)
|
||||
and (host_name := entries.get(configuration))
|
||||
and (address := await mdns.async_resolve_host(host_name))
|
||||
and (entry := entries.get(config_file))
|
||||
and (address := await mdns.async_resolve_host(entry.name))
|
||||
):
|
||||
port = address
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user