Introduces a tiny sleep in the loop that checks HA availability

to avoid heavy CPU busy-wait
Merge pull request #1530 from tinwelint/2.0-no-availability-busy-wait

Introduces a tiny sleep in the loop that checks HA availability