1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-27 07:32:22 +01:00
This commit is contained in:
J. Nick Koston
2025-09-11 18:47:09 -05:00
parent 80240437c5
commit 7fb8c84d6a
2 changed files with 64 additions and 27 deletions

View File

@@ -136,7 +136,14 @@ def choose_upload_log_host(
(show_ota and "ota" in CORE.config)
or (show_api and "api" in CORE.config)
):
resolved.append(CORE.address)
# Check if we have cached addresses for CORE.address
if CORE.address_cache and (
cached := CORE.address_cache.get_addresses(CORE.address)
):
_LOGGER.debug("Using cached addresses for OTA: %s", cached)
resolved.extend(cached)
else:
resolved.append(CORE.address)
elif show_mqtt and has_mqtt_logging():
resolved.append("MQTT")
else: