mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Local media source: return different error if media folder doesnt exist (#39759)
This commit is contained in:
parent
be8aa16170
commit
d0e44893f5
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user