Skip to content

Commit b5d47e4

Browse files
authored
Merge pull request #4 from chicaneau/patch-1
Update media_player.py
2 parents 784e413 + 8508563 commit b5d47e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/hass_agent/media_player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ async def async_browse_media(
283283

284284
async def async_play_media(self, media_type: str, media_id: str, **kwargs: Any):
285285
"""Play media source"""
286-
if not media_type.startswith("audio/"):
286+
if not media_type.startswith("music"):
287287
_logger.error(
288288
"Invalid media type %r. Only %s is supported!",
289289
media_type,

0 commit comments

Comments
 (0)