mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
This commit is contained in:
parent
e915dd0d95
commit
5fcfdee6b5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user