mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Allow soundtouch to play https content too (#16713)
This commit is contained in:
parent
33d6c99f19
commit
589554ad16
@ -297,7 +297,7 @@ class SoundTouchDevice(MediaPlayerDevice):
|
|||||||
def play_media(self, media_type, media_id, **kwargs):
|
def play_media(self, media_type, media_id, **kwargs):
|
||||||
"""Play a piece of media."""
|
"""Play a piece of media."""
|
||||||
_LOGGER.debug("Starting media with media_id: %s", media_id)
|
_LOGGER.debug("Starting media with media_id: %s", media_id)
|
||||||
if re.match(r'http://', str(media_id)):
|
if re.match(r'https?://', str(media_id)):
|
||||||
# URL
|
# URL
|
||||||
_LOGGER.debug("Playing URL %s", str(media_id))
|
_LOGGER.debug("Playing URL %s", str(media_id))
|
||||||
self._device.play_url(str(media_id))
|
self._device.play_url(str(media_id))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user