From a459b3cdbe337831e4f00a95215594e8622cca12 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 30 Nov 2022 15:33:21 -0500 Subject: [PATCH] Allow verbose, don't allow version in icinga2 conf --- check_home_assistant_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_home_assistant_state.py b/check_home_assistant_state.py index 6e04cd2..14a9c90 100755 --- a/check_home_assistant_state.py +++ b/check_home_assistant_state.py @@ -114,7 +114,7 @@ class Icinga2ConfAction(argparse.Action): print(f' command = [ PluginContribDir + "/{command_path}" ]') print(" arguments = {") for action in parser._actions: - if action.dest in ["verbose", "help", self.dest]: + if action.dest in [self.dest, "help", "version"]: continue arg_str = action.option_strings[-1]