diff --git a/homeassistant/components/media_source/local_source.py b/homeassistant/components/media_source/local_source.py index 34b526171ea..d670cee1676 100644 --- a/homeassistant/components/media_source/local_source.py +++ b/homeassistant/components/media_source/local_source.py @@ -83,6 +83,8 @@ class LocalSource(MediaSource): full_path = Path(self.hass.config.path("media", location)) if not full_path.exists(): + if location == "": + raise BrowseError("Media directory does not exist.") raise BrowseError("Path does not exist.") if not full_path.is_dir():