Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions verisure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
VariableTypes,
ResponseError,
Session,
Query,
)

ALARM_ARMED_HOME = 'ARMED_HOME'
Expand Down
5 changes: 4 additions & 1 deletion verisure/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import re
import click
from verisure import VariableTypes, Session, ResponseError, LoginError
from verisure import VariableTypes, Session, ResponseError, LoginError, Query


class DeviceLabel(click.ParamType):
Expand Down Expand Up @@ -69,6 +69,9 @@ def decorator(f):
# Remove Giid type from variables, not supported by CLI
if VariableTypes.Giid in variables:
variables.remove(VariableTypes.Giid)
# Remove Query type from variables, not used CLI
if Query in variables:
variables.remove(Query)
dashed_name = name.replace('_', '-')
if len(variables) == 0:
click.option(
Expand Down
Loading