mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 10:12:21 +01:00
Add support for command-line substitutions (#1014)
* Add support for command-line substitutions * Fix flake8 * pylint fixes
This commit is contained in:
@@ -66,7 +66,7 @@ def read_config(args):
|
||||
CORE.config_path = data['file']
|
||||
vs = VSCodeResult()
|
||||
try:
|
||||
res = load_config()
|
||||
res = load_config(dict(args.substitution) if args.substitution else {})
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
vs.add_yaml_error(str(err))
|
||||
else:
|
||||
|
Reference in New Issue
Block a user