Use `Inventory.len_all_hosts`, not `State.connected_hosts` for calculating failed percentages (so it works before connect).
Use `Inventory.len_all_hosts`, not `State.connected_hosts` for calculating failed percentages (so it works before connect).

Fizzadar/pyinfra,Fizzadar/pyinfra