From 5fcfdee6b5f315ca45a9e27064e305fd49aa0e5e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 19 Nov 2019 18:33:09 +0100 Subject: [PATCH] Fix documentation URL in failed platform config check (#28814) * Fix documentation URL in failed platform config check * Replace pop from list by access using negative index * Use of split instead of rsplit --- homeassistant/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/config.py b/homeassistant/config.py index 864ced6a16a..e6be2b9c7a5 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -456,9 +456,10 @@ def _format_config_error(ex: Exception, domain: str, config: Dict) -> str: ) if domain != CONF_CORE: + integration = domain.split(".")[-1] message += ( "Please check the docs at " - "https://home-assistant.io/integrations/{}/".format(domain) + f"https://home-assistant.io/integrations/{integration}/" ) return message