From 9f24acca6bbf5a1ab17416dcf1c2f5cce217eed6 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 26 Oct 2022 13:16:04 +0200 Subject: [PATCH] Fix displaying errors --- check_esphome_devices | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_esphome_devices b/check_esphome_devices index 8659b20..0c9d66f 100755 --- a/check_esphome_devices +++ b/check_esphome_devices @@ -115,8 +115,10 @@ else: if UPDATE_AVAILABLE: msg.append(f'{UPDATE_AVAILABLE} update available') print(f'WARNING - {", ".join(msg)}') + print("\n".join([f'- {error}' for error in errors])) EXIT_STATUS = STATUS['WARNING'] -print("\n".join([ + +print("\nDevices:\n" + "\n".join([ ( f'- {name} (version = {dev["deployed_version"]}, ' f'address = {dev["address"]})'