From db138a9b4c3fe0fc89651b374a494965b178d747 Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 17 Apr 2026 17:31:56 -0500 Subject: [PATCH] v0.1.1: Forward media_position_updated_at through DAG now_playing So ha-media-zone's card can interpolate the playhead smoothly between server polls instead of snapping once every 10-30s. Co-Authored-By: Claude Opus 4.7 (1M context) --- custom_components/nvidia_shield/manifest.json | 2 +- custom_components/nvidia_shield/media_player.py | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_components/nvidia_shield/manifest.json b/custom_components/nvidia_shield/manifest.json index 2c65879..ef62c1a 100644 --- a/custom_components/nvidia_shield/manifest.json +++ b/custom_components/nvidia_shield/manifest.json @@ -8,5 +8,5 @@ "issue_tracker": "https://github.com/ltomes/ha-nvidia-shield/issues", "iot_class": "local_polling", "requirements": ["adb-shell>=0.4.0"], - "version": "0.1.0" + "version": "0.1.1" } diff --git a/custom_components/nvidia_shield/media_player.py b/custom_components/nvidia_shield/media_player.py index 54a38cb..c3a3b34 100644 --- a/custom_components/nvidia_shield/media_player.py +++ b/custom_components/nvidia_shield/media_player.py @@ -571,7 +571,8 @@ class NvidiaShieldMediaPlayer(MediaPlayerEntity): "media_type": attrs.get("media_content_type")} for src, dst in [("media_series_title", "series"), ("media_season", "season"), ("media_episode", "episode"), ("media_duration", "duration"), - ("media_position", "position")]: + ("media_position", "position"), + ("media_position_updated_at", "position_updated_at")]: v = attrs.get(src) if v is not None: np[dst] = v diff --git a/pyproject.toml b/pyproject.toml index 27e8614..0cba5e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ha-nvidia-shield" -version = "0.1.0" +version = "0.1.1" description = "Home Assistant custom integration for NVIDIA Shield TV via ADB + Android TV Remote" readme = "README.md" requires-python = ">=3.12"