From 7bfbcfe63c86e960c194cd772e69cb2e1b0fff45 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 26 Oct 2022 12:54:30 +0200 Subject: [PATCH] Fix errors couting --- check_esphome_devices | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_esphome_devices b/check_esphome_devices index a49c5c2..8659b20 100755 --- a/check_esphome_devices +++ b/check_esphome_devices @@ -95,10 +95,12 @@ for dev in devices_data['configured']: f'({dev["deployed_version"]} => {dev["current_version"]})') if dev['configuration'] not in ping_data: + NO_PING_DATA += 1 errors.append( f'No ping data found for device {dev["name"]} ' f'({dev["configuration"]})') elif not ping_data[dev['configuration']]: + UNREACHABLE_DEVICES += 1 errors.append(f'Device {dev["name"]} is unreachable') if not errors: