Fix issue with waiting for prompts
Fix issue with waiting for prompts

getDeviceState would block, rendering the entire algorithm with CR and
return useless. Added an option to the function to be able to execute
also without blocking.

acioran/overwatcher