Allow loading Lovelace dashboards not only from root (#37561)
This commit is contained in:
parent
97e1be98df
commit
00eb23b43f
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ from homeassistant.helpers import collection, config_validation as cv
|
||||||
from homeassistant.helpers.service import async_register_admin_service
|
from homeassistant.helpers.service import async_register_admin_service
|
||||||
from homeassistant.helpers.typing import ConfigType, HomeAssistantType, ServiceCallType
|
from homeassistant.helpers.typing import ConfigType, HomeAssistantType, ServiceCallType
|
||||||
from homeassistant.loader import async_get_integration
|
from homeassistant.loader import async_get_integration
|
||||||
from homeassistant.util import sanitize_filename
|
from homeassistant.util import sanitize_path
|
||||||
|
|
||||||
from . import dashboard, resources, websocket
|
from . import dashboard, resources, websocket
|
||||||
from .const import (
|
from .const import (
|
||||||
|
@ -46,7 +46,7 @@ YAML_DASHBOARD_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
**DASHBOARD_BASE_CREATE_FIELDS,
|
**DASHBOARD_BASE_CREATE_FIELDS,
|
||||||
vol.Required(CONF_MODE): MODE_YAML,
|
vol.Required(CONF_MODE): MODE_YAML,
|
||||||
vol.Required(CONF_FILENAME): vol.All(cv.string, sanitize_filename),
|
vol.Required(CONF_FILENAME): vol.All(cv.string, sanitize_path),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue