mirror of
https://opendev.org/x/pyghmi
synced 2026-06-19 18:11:00 +00:00
Merge "Show True and False as choices for booleans"
This commit is contained in:
@@ -932,6 +932,9 @@ class Command(object):
|
||||
defaultval, defaultval)
|
||||
if attr['Type'] == 'Integer' and defaultval:
|
||||
defaultval = int(defaultval)
|
||||
if attr['Type'] == 'Boolean':
|
||||
vals = [{'ValueDisplayName': 'True'},
|
||||
{'ValueDisplayName': 'False'}]
|
||||
addon[attr['AttributeName']] = {
|
||||
'default': defaultval,
|
||||
'help': attr.get('HelpText', None),
|
||||
|
||||
Reference in New Issue
Block a user