Don't try compat parsing for "esphome version" (#1966)

This commit is contained in:
Oxan van Leeuwen 2021-07-06 00:17:36 +02:00 committed by GitHub
parent 062cedc200
commit fd4b7d4588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -516,7 +516,7 @@ def parse_args(argv):
deprecated_argv_suggestion = None
if ["dashboard", "config"] == argv[1:3]:
if ["dashboard", "config"] == argv[1:3] or ["version"] == argv[1:2]:
# this is most likely meant in new-style arg format. do not try compat parsing
pass
else: