Add media class browse media attribute (#39770)

This commit is contained in:
Martin Hjelmare authored and Paulus Schoutsen committed 2020-09-08 15:35:26 +00:00
1 parent 71c2557405
commit 2a879afc7a
14 files changed
+248 -18

No files matched your search

@@ -2,6 +2,7 @@
import pytest
from homeassistant.components import media_source
from homeassistant.components.media_player.const import MEDIA_CLASS_DIRECTORY
from homeassistant.components.media_player.errors import BrowseError
from homeassistant.components.media_source import const
from homeassistant.setup import async_setup_component
@@ -77,6 +78,7 @@ async def test_websocket_browse_media(hass, hass_ws_client):
domain=const.DOMAIN,
identifier="/media",
title="Local Media",
media_class=MEDIA_CLASS_DIRECTORY,
media_content_type="listing",
can_play=False,
can_expand=True,