Skip to content

Commit

Permalink
Don't try compat parsing for "esphome version" (esphome#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxan authored Jul 5, 2021
1 parent 062cedc commit fd4b7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def _raise(x):

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:
Expand Down

0 comments on commit fd4b7d4

Please sign in to comment.