Normalize snapshot URLs in HA integration

Convert relative snapshot image_url responses to absolute URLs using configured RelayTV base_url and refresh API helper notes for /playback/play fallback semantics.
This commit is contained in:
2026-03-19 20:33:43 -05:00
parent f86d2fec4a
commit d581a66ef0
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ We intentionally prefer the canonical endpoints:
- POST /enqueue
- POST /next
- POST /pause | /resume | /toggle_pause
- POST /playback/play
- POST /seek_abs
- POST /volume
- POST /stop
@@ -201,7 +202,7 @@ class RelayTVApi:
async def ensure_playing(self) -> bool:
"""Best-effort play semantics for Home Assistant.
RelayTV does not currently expose a single "resume session or play next" endpoint.
Used as a compatibility fallback when /playback/play is unavailable.
We emulate expected behavior:
- If paused -> POST /resume