Skip to content

Commit 4b21f58

Browse files
authored
fix: remove reconnect delay after standby (#26)
The exit_standby event will be delayed by the Remote Two until the system reports a routable network interface. This allows for an immediate reconnect of the integration, without retries. Relates to unfoldedcircle/feature-and-bug-tracker#320 Other: fix linting issues discovered by new black version
1 parent 627fdca commit 4b21f58

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
_Changes in the next release_
1111

12+
### Fixed
13+
- Remove reconnect delay after standby. Requires new Remote Two firmware ([unfoldedcircle/feature-and-bug-tracker#320](https://github.com/unfoldedcircle/feature-and-bug-tracker/issues/320)).
14+
1215
---
1316

1417
## v0.4.5 - 2024-01-09

intg-androidtv/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Application link and identifier mappings."""
2+
23
# Application launch links
34
Apps = {
45
"Youtube": {"url": "https://www.youtube.com"},

intg-androidtv/driver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ async def on_exit_standby():
6060
Connect all Denon AVR instances.
6161
"""
6262
_LOG.debug("Exit standby event: connecting device(s)")
63-
# delay is only a temporary workaround, until the core verifies first that the network is up with an IP address
64-
await asyncio.sleep(2)
6563

6664
for configured in _configured_android_tvs.values():
6765
# start background task

intg-androidtv/inputs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
See https://github.com/tronikos/androidtvremote2/blob/v0.0.14/src/androidtvremote2/remotemessage.proto#L681-L731
55
"""
6+
67
KeyCode = {
78
"HDMI 1": "KEYCODE_TV_INPUT_HDMI_1",
89
"HDMI 2": "KEYCODE_TV_INPUT_HDMI_2",

0 commit comments

Comments
 (0)