mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 17:00:21 +00:00
Fix-esphome-validation-line-number (#3815)
This commit is contained in:
+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