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) <noreply@anthropic.com>
This commit is contained in:
3 files changed
+4
-3
No files matched your search
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user