Add link to log view in persistent notification (#42060)

This commit is contained in:
Philip Allgaier
2020-10-21 19:09:45 +02:00
committed by GitHub
parent a62db7887b
commit bd1d6f2c0d
2 changed files with 3 additions and 3 deletions

View File

@@ -902,7 +902,7 @@ def async_notify_setup_error(
part = f"[{name}]({link})" if link else name
message += f" - {part}\n"
message += "\nPlease check your config."
message += "\nPlease check your config and [logs](/config/logs)."
persistent_notification.async_create(
hass, message, "Invalid config", "invalid_config"

View File

@@ -564,7 +564,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager):
title="New devices discovered",
message=(
"We have discovered new devices on your network. "
"[Check it out](/config/integrations)"
"[Check it out](/config/integrations)."
),
notification_id=DISCOVERY_NOTIFICATION_ID,
)
@@ -573,7 +573,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager):
title="Integration requires reconfiguration",
message=(
"At least one of your integrations requires reconfiguration to "
"continue functioning. [Check it out](/config/integrations)"
"continue functioning. [Check it out](/config/integrations)."
),
notification_id=RECONFIGURE_NOTIFICATION_ID,
)