Change log url in config check error notification (#37311)

This commit is contained in:
Courtenay 2020-07-02 05:14:17 -07:00 committed by GitHub
parent 235298a1b2
commit 0f8b934e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -325,7 +325,7 @@ async def async_setup(hass, config):
if errors: if errors:
_LOGGER.error(errors) _LOGGER.error(errors)
hass.components.persistent_notification.async_create( hass.components.persistent_notification.async_create(
"Config error. See [the logs](/developer-tools/logs) for details.", "Config error. See [the logs](/config/logs) for details.",
"Config validating", "Config validating",
f"{HASS_DOMAIN}.check_config", f"{HASS_DOMAIN}.check_config",
) )

View File

@ -112,7 +112,7 @@ async def async_setup(hass: ha.HomeAssistant, config: dict) -> bool:
if errors: if errors:
_LOGGER.error(errors) _LOGGER.error(errors)
hass.components.persistent_notification.async_create( hass.components.persistent_notification.async_create(
"Config error. See [the logs](/developer-tools/logs) for details.", "Config error. See [the logs](/config/logs) for details.",
"Config validating", "Config validating",
f"{ha.DOMAIN}.check_config", f"{ha.DOMAIN}.check_config",
) )

View File

@ -9,7 +9,7 @@ async def async_setup(hass: HomeAssistant, config: dict):
"""Set up the Safe Mode component.""" """Set up the Safe Mode component."""
persistent_notification.async_create( persistent_notification.async_create(
hass, hass,
"Home Assistant is running in safe mode. Check [the error log](/developer-tools/logs) to see what went wrong.", "Home Assistant is running in safe mode. Check [the error log](/config/logs) to see what went wrong.",
"Safe Mode", "Safe Mode",
) )
return True return True