mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Upgrade pylint to 2.2.2 (#18750)
* Upgrade to 2.2.0 * simplifiable-if-expression fixes * duplicate-string-formatting-argument fixes * unused-import fixes * Upgrade to 2.2.1 * Remove no longer needed disable * Upgrade to 2.2.2
This commit is contained in:
committed by
Paulus Schoutsen
parent
04c7d5c128
commit
1be440a72b
@@ -437,9 +437,10 @@ def _format_config_error(ex: vol.Invalid, domain: str, config: Dict) -> str:
|
||||
"""
|
||||
message = "Invalid config for [{}]: ".format(domain)
|
||||
if 'extra keys not allowed' in ex.error_message:
|
||||
message += '[{}] is an invalid option for [{}]. Check: {}->{}.'\
|
||||
.format(ex.path[-1], domain, domain,
|
||||
'->'.join(str(m) for m in ex.path))
|
||||
message += '[{option}] is an invalid option for [{domain}]. ' \
|
||||
'Check: {domain}->{path}.'.format(
|
||||
option=ex.path[-1], domain=domain,
|
||||
path='->'.join(str(m) for m in ex.path))
|
||||
else:
|
||||
message += '{}.'.format(humanize_error(config, ex))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user