From 9f24d1fca4e3c72aac96abaf31a366c9e343342c Mon Sep 17 00:00:00 2001 From: Siemon Geeroms Date: Sun, 1 Dec 2024 01:04:13 +0100 Subject: [PATCH] accept true or 1 as value --- homeassistant/components/plex/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/plex/services.py b/homeassistant/components/plex/services.py index f169f106ed9827..f9dd248116117b 100644 --- a/homeassistant/components/plex/services.py +++ b/homeassistant/components/plex/services.py @@ -192,7 +192,7 @@ def process_plex_payload( return PlexMediaSearchResult(playqueue, content) search_query = content.copy() - shuffle = search_query.pop("shuffle", 0) + shuffle = search_query.pop("shuffle", 0) continuous = search_query.pop("continuous", 0) # Remove internal kwargs before passing copy to plexapi @@ -203,7 +203,7 @@ def process_plex_payload( if supports_playqueues and (isinstance(media, list) or shuffle or continuous): playqueue = plex_server.create_playqueue( - media, includeRelated=0, shuffle=shuffle, continuous=continuous + media, includeRelated=0, shuffle=1 if shuffle else 0, continuous=1 if continuous else 0 ) return PlexMediaSearchResult(playqueue, content)