Compare commits

..

4 Commits

2 changed files with 3 additions and 23 deletions

View File

@ -8,11 +8,7 @@ object CheckCommand "home_assistant_state" {
"--url" = {
value = "$home_assistant_state_url$"
description = "URL for Home Assistant"
}
"--device-class" = {
value = "$home_assistant_state_device_class$"
description = "Device class of entities to monitor"
}
}
"--warning" = {
value = "$home_assistant_state_warning$"
description = "Return warning if battery percentage is outside RANGE"
@ -21,21 +17,5 @@ object CheckCommand "home_assistant_state" {
value = "$home_assistant_state_critical$"
description = "Return critical if battery percentage is outside RANGE"
}
"--min" = {
value = "$home_assistant_state_min$"
description = "Min for performance data"
}
"--max" = {
value = "$home_assistant_state_max$"
description = "Max for performance data"
}
"--attribute" = {
value = "$home_assistant_state_attribute$"
description = "Check attribute instead of value"
}
"--filter" = {
value = "$home_assistant_state_filter$"
description = "Filter by 'attribute=value' (can be an array)"
}
}
}
}

View File

@ -89,7 +89,7 @@ def main():
"--device-class",
type=str,
required=True,
help="Device class of entities to monitor",
help="A device class",
)
argp.add_argument(
"-w",