From 8b4fea9a5cd195d1ba63cc87f32bbc46d57094e6 Mon Sep 17 00:00:00 2001 From: James Mackay Date: Thu, 8 Oct 2026 10:57:08 +0100 Subject: [PATCH] feat(const,manifest): zeroconf service type + CONF_APP_NAME_MAP; manifest declares the _androidtvremote2._tcp discovery dependency (P4-1) --- custom_components/nvidia_shield/const.py | 7 +++++++ custom_components/nvidia_shield/manifest.json | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/custom_components/nvidia_shield/const.py b/custom_components/nvidia_shield/const.py index b9d1926..648f79c 100644 --- a/custom_components/nvidia_shield/const.py +++ b/custom_components/nvidia_shield/const.py @@ -89,6 +89,13 @@ PROTOCOL_REMOTE_KEYS = { # §7 channel selection: digits only, ~0.1 s apart, no ENTER by default # (replicates HA core androidtv_remote's verified behavior). +# Zeroconf discovery (Phase 4): the Android TV remote service type. +ZEROCONF_SERVICE_TYPE = "_androidtvremote2._tcp.local." + +# P4-1 apps name/icon map (options flow editor): package → friendly name, +# consumed by app_name after the androidtv-entity and protocol-push tiers. +CONF_APP_NAME_MAP = "app_name_map" + CHANNEL_DIGIT_DELAY = 0.1 CONF_CHANNEL_DIGIT_DELAY = "channel_digit_delay" CONF_CHANNEL_SEND_ENTER = "channel_send_enter" diff --git a/custom_components/nvidia_shield/manifest.json b/custom_components/nvidia_shield/manifest.json index 3529ce3..3a91fb6 100644 --- a/custom_components/nvidia_shield/manifest.json +++ b/custom_components/nvidia_shield/manifest.json @@ -13,5 +13,8 @@ "adb-shell>=0.4.0", "androidtvremote2>=0.2.0" ], - "version": "2026.10.08" + "version": "2026.10.08", + "zeroconf": [ + "_androidtvremote2._tcp.local." + ] }