mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Additional radio schemes for sonos (#12886)
This commit is contained in:
parent
36e9f523d1
commit
a147401034
@ -323,8 +323,10 @@ def _timespan_secs(timespan):
|
||||
|
||||
def _is_radio_uri(uri):
|
||||
"""Return whether the URI is a radio stream."""
|
||||
return uri.startswith('x-rincon-mp3radio:') or \
|
||||
uri.startswith('x-sonosapi-stream:')
|
||||
radio_schemes = (
|
||||
'x-rincon-mp3radio:', 'x-sonosapi-stream:', 'x-sonosapi-radio:',
|
||||
'hls-radio:')
|
||||
return uri.startswith(radio_schemes)
|
||||
|
||||
|
||||
class SonosDevice(MediaPlayerDevice):
|
||||
|
Loading…
x
Reference in New Issue
Block a user