mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Local media source: return different error if media folder doesnt exist (#39759)
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user