test: command-routing and play_media(channel) orchestration — digit sequence with cancel guard, fallback ordering protocol→ADB→legacy, remote send_command holds/repeats, volume readout, is_on ladder
This commit is contained in:
1 parent
f071d540bd
commit
b451638c65
4 files changed
+581
-1
No files matched your search
@@ -90,6 +90,7 @@ PROTOCOL_REMOTE_KEYS = {
|
||||
# §7 channel selection: digits only, ~0.1 s apart, no ENTER by default
|
||||
# (replicates HA core androidtv_remote's verified behavior).
|
||||
CHANNEL_DIGIT_DELAY = 0.1
|
||||
CONF_CHANNEL_DIGIT_DELAY = "channel_digit_delay"
|
||||
CONF_CHANNEL_SEND_ENTER = "channel_send_enter"
|
||||
|
||||
# Verified on-device package names (docs/RESEARCH_SHIELD.md): TiviMate does
|
||||
|
||||
@@ -44,6 +44,7 @@ from .const import (
|
||||
CHANNEL_DIGIT_DELAY,
|
||||
CONF_ADB_STORE_APP_INFO,
|
||||
CONF_ANDROIDTV_ENTITY,
|
||||
CONF_CHANNEL_DIGIT_DELAY,
|
||||
CONF_CHANNEL_SEND_ENTER,
|
||||
CONF_JELLYFIN_ENTITY,
|
||||
CONF_POWER_ENTITY,
|
||||
@@ -817,7 +818,7 @@ class NvidiaShieldMediaPlayer(MediaPlayerEntity):
|
||||
self._channel_task = None
|
||||
|
||||
async def _channel_entry_sequence(self, digits: list[str]) -> None:
|
||||
delay = self._entry.options.get("channel_digit_delay", CHANNEL_DIGIT_DELAY)
|
||||
delay = self._entry.options.get(CONF_CHANNEL_DIGIT_DELAY, CHANNEL_DIGIT_DELAY)
|
||||
send_enter = self._entry.options.get(CONF_CHANNEL_SEND_ENTER, False)
|
||||
try:
|
||||
for digit in digits:
|
||||
|
||||
Reference in new issue
Block a user