mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
Fix-esphome-validation-line-number (#3815)
This commit is contained in:
committed by
GitHub
parent
b2db524366
commit
1444cddda9
+3
-1
@@ -12,7 +12,9 @@ from typing import Optional
|
||||
|
||||
def _get_invalid_range(res, invalid):
|
||||
# type: (Config, cv.Invalid) -> Optional[DocumentRange]
|
||||
return res.get_deepest_document_range_for_path(invalid.path)
|
||||
return res.get_deepest_document_range_for_path(
|
||||
invalid.path, invalid.error_message == "extra keys not allowed"
|
||||
)
|
||||
|
||||
|
||||
def _dump_range(range):
|
||||
|
||||
Reference in New Issue
Block a user