Add helper for media players to handle HA hosted media (#66120)

* Sonos to sign all HASS urls

* Don't sign if queries in url

* Extract media player hass URL handling to helper
This commit is contained in:
Paulus Schoutsen
2022-02-09 12:50:33 -08:00
committed by GitHub
parent bd657e5dd7
commit 3bce870c6d
9 changed files with 201 additions and 152 deletions

View File

@@ -1,4 +1,6 @@
"""Provides the constants needed for component."""
# How long our auth signature on the content should be valid for
CONTENT_AUTH_EXPIRY_TIME = 3600 * 24
ATTR_APP_ID = "app_id"
ATTR_APP_NAME = "app_name"