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: