Revert incorrect check (#16883)

This commit is contained in:
Paulus Schoutsen 2018-09-26 10:15:49 +02:00 committed by GitHub
parent fa98a27df7
commit e205092693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ class SoundTouchDevice(MediaPlayerDevice):
def play_media(self, media_type, media_id, **kwargs):
"""Play a piece of media."""
_LOGGER.debug("Starting media with media_id: %s", media_id)
if re.match(r'https?://', str(media_id)):
if re.match(r'http?://', str(media_id)):
# URL
_LOGGER.debug("Playing URL %s", str(media_id))
self._device.play_url(str(media_id))