From 1f3cc8128acbb518c493ff7a4d26319ff7cb86e6 Mon Sep 17 00:00:00 2001
From: albaintor <118518828+albaintor@users.noreply.github.com>
Date: Mon, 23 Dec 2024 17:17:49 +0100
Subject: [PATCH] feat: Improved reconnection delay (#49)
* Improved reconnection delay
* Removed setup call as it is already called by update method (and only once)
---
.idea/misc.xml | 4 +---
intg-denonavr/avr.py | 4 ++--
requirements.txt | 6 +++---
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 15b54bd..c2773a2 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -6,7 +6,5 @@
-
-
-
+
\ No newline at end of file
diff --git a/intg-denonavr/avr.py b/intg-denonavr/avr.py
index 7123ae1..dd3b2b5 100644
--- a/intg-denonavr/avr.py
+++ b/intg-denonavr/avr.py
@@ -32,7 +32,7 @@
AvrTimoutError,
DenonAvrError,
)
-from pyee import AsyncIOEventEmitter
+from pyee.asyncio import AsyncIOEventEmitter
from ucapi.media_player import Attributes as MediaAttr
_LOG = logging.getLogger(__name__)
@@ -406,7 +406,7 @@ async def connect(self):
_LOG.info("Connecting AVR %s on %s", self.id, self._receiver.host)
self.events.emit(Events.CONNECTING, self.id)
request_start = time.time()
- await self._receiver.async_setup()
+
await self._receiver.async_update()
if self._use_telnet:
if self._update_audyssey:
diff --git a/requirements.txt b/requirements.txt
index e050630..9896a34 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-pyee~=9.0
-denonavr~=0.11.6
-ucapi==0.1.7
+pyee~=12.1.1
+denonavr~=1.0.1
+ucapi==0.2.0