Skip to content

Commit

Permalink
fix: reconnect delay
Browse files Browse the repository at this point in the history
  • Loading branch information
martonborzak committed Jul 16, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent d6c96ed commit 935932f
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion driver.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"driver_id": "uc_appletv_driver",
"version": "0.7.1",
"version": "0.7.2",
"min_core_api": "0.7.0",
"name": { "en": "Apple TV" },
"icon": "custom:appletv.png",
1 change: 1 addition & 0 deletions tv.py
Original file line number Diff line number Diff line change
@@ -189,6 +189,7 @@ async def connect(self):
self._atvObj = await pyatv.connect(self._atvObj, self._loop)
except:
if self._connErrorCounter < 5:
await asyncio.sleep(2)
self._connErrorCounter =+ 1
self.connect()
else:

0 comments on commit 935932f

Please sign in to comment.