[core] Fix post-OTA logs display when using esphome run and MQTT (#10274)

This commit is contained in:
Ben Winslow
2025-08-19 13:09:22 +12:00
committed by Jesse Hills
parent 99f57ecb73
commit c5858b7032
+1 -1
View File
@@ -476,7 +476,7 @@ def show_logs(config: ConfigType, args: ArgsProtocol, devices: list[str]) -> int
from esphome.components.api.client import run_logs
return run_logs(config, addresses_to_use)
if get_port_type(port) == "MQTT" and "mqtt" in config:
if get_port_type(port) in ("NETWORK", "MQTT") and "mqtt" in config:
from esphome import mqtt
return mqtt.show_logs(