From b66c4a9dca4c5281429800d72db554921106e434 Mon Sep 17 00:00:00 2001 From: Ph-Wagner <55734069+Ph-Wagner@users.noreply.github.com> Date: Fri, 9 Apr 2021 18:02:06 +0200 Subject: [PATCH] Extend Google Cast media source URL expiry to 24h (#48937) * Extend media source URL expiry to 12h closes #46280 After checking out https://github.com/home-assistant/core/pull/48912 I just think why not. * Update homeassistant/components/cast/media_player.py Co-authored-by: Erik Montnemery --- homeassistant/components/cast/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/cast/media_player.py b/homeassistant/components/cast/media_player.py index b6ca8dd0728..016d5162d23 100644 --- a/homeassistant/components/cast/media_player.py +++ b/homeassistant/components/cast/media_player.py @@ -473,7 +473,7 @@ class CastDevice(MediaPlayerEntity): self.hass, refresh_token.id, media_id, - timedelta(minutes=5), + timedelta(seconds=media_source.DEFAULT_EXPIRY_TIME), ) # prepend external URL