Remove examples of module antipattern of setting the choices array for boolean types.

This commit is contained in:
Michael DeHaan
2013-10-11 08:45:13 -04:00
parent a9225d0c7a
commit 119b6d73dd
13 changed files with 13 additions and 16 deletions

View File

@@ -144,7 +144,7 @@ def main():
payload = dict(required = True),
client_id = dict(default = None),
qos = dict(default="0", choices=["0", "1", "2"]),
retain = dict(default='no', choices=BOOLEANS, type='bool'),
retain = dict(default=False, type='bool'),
username = dict(default = None),
password = dict(default = None),
),