power: sleep for 1 second between failed retries

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-01-28 06:12:56 -05:00
parent 04477705b0
commit 209bdc18da
1 changed files with 1 additions and 0 deletions

View File

@ -428,6 +428,7 @@ class HTTPDevice(PowerDevice):
if i == retries - 1:
msg = f"Error sending '{self.type}' command: {command}"
raise self.server.error(msg) from e
await asyncio.sleep(1.0)
else:
break
return data