Skip to content

Commit 5e5e130

Browse files
wimb0frenck
authored andcommitted
Fix BrowseError import in yamaha_musiccast media_player.py (home-assistant#154980)
1 parent f6ac23c commit 5e5e130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

homeassistant/components/yamaha_musiccast/media_player.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from homeassistant.components import media_source
1313
from homeassistant.components.media_player import (
14+
BrowseError,
1415
BrowseMedia,
1516
MediaClass,
1617
MediaPlayerEntity,
@@ -372,7 +373,7 @@ def get_content_type(item):
372373
]
373374

374375
if add_media_source:
375-
with contextlib.suppress(media_source.BrowseError):
376+
with contextlib.suppress(BrowseError):
376377
item = await media_source.async_browse_media(
377378
self.hass,
378379
None,

0 commit comments

Comments
 (0)