1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-27 07:32:22 +01:00

Merge branch 'dev' into integration

This commit is contained in:
J. Nick Koston
2025-09-09 17:06:51 -05:00
45 changed files with 143 additions and 37 deletions

View File

@@ -459,6 +459,13 @@ def upload_program(
def show_logs(config: ConfigType, args: ArgsProtocol, devices: list[str]) -> int | None:
try:
module = importlib.import_module("esphome.components." + CORE.target_platform)
if getattr(module, "show_logs")(config, args, devices):
return 0
except AttributeError:
pass
if "logger" not in config:
raise EsphomeError("Logger is not configured!")