Skip to content

Commit

Permalink
feat: Improved reconnection delay (#49)
Browse files Browse the repository at this point in the history
* Improved reconnection delay
* Removed setup call as it is already called by update method (and only once)
  • Loading branch information
albaintor authored Dec 23, 2024
1 parent ad08e61 commit 1f3cc81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions intg-denonavr/avr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1f3cc81

Please sign in to comment.