mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[vscode] provide version to editor (#8752)
This commit is contained in:
committed by
GitHub
parent
dded81d622
commit
11dcaf7383
@@ -18,8 +18,12 @@ def _run_repl_test(input_data):
|
||||
vscode.read_config(args)
|
||||
|
||||
# Capture printed output
|
||||
full_output = "".join(call[0][0] for call in mock_stdout.write.call_args_list)
|
||||
return full_output.strip().split("\n")
|
||||
full_output = "".join(
|
||||
call[0][0] for call in mock_stdout.write.call_args_list
|
||||
).strip()
|
||||
splitted_output = full_output.split("\n")
|
||||
remove_version = splitted_output[1:] # remove first entry with version info
|
||||
return remove_version
|
||||
|
||||
|
||||
def _validate(file_path: str):
|
||||
|
Reference in New Issue
Block a user