fix: flow VERSION=2 for new entries; optional ENTER gains the ADB keyevent-66 fallback; CI installs androidtvremote2 for the real-library tests (F4, F5, F6)
This commit is contained in:
1 parent
8462ad494c
commit
5f8c3290cc
6 files changed
+50
-6
No files matched your search
@@ -834,9 +834,15 @@ class NvidiaShieldMediaPlayer(MediaPlayerEntity):
|
||||
media={"media_content_id": digit, "media_content_type": "channel"},
|
||||
)
|
||||
await asyncio.sleep(delay)
|
||||
if send_enter:
|
||||
_LOGGER.debug("play_media(channel): optional ENTER key sent")
|
||||
await self._manager.send_protocol_key("KEYCODE_ENTER")
|
||||
if (
|
||||
send_enter
|
||||
and self._manager is not None
|
||||
and not await self._manager.send_protocol_key("KEYCODE_ENTER")
|
||||
):
|
||||
# ENTER fallback chain: protocol key → ADB keyevent 66.
|
||||
# (No legacy-entity tier: the external androidtv_remote has
|
||||
# no ENTER service to delegate to.)
|
||||
await self._manager.send_enter_key()
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
|
||||
Reference in new issue
Block a user