as_dict#
- CommandTable.as_dict() dict [source]#
Return a dictionary representation of the
CommandTable
.The function formats the returner value into a schema which is accepted by the ZI devices which support command tables.
The table is validated against the given schema.
- Returns:
CommandTable as a Python dictionary.
- Raises:
ValidateError – The command table does not correspond to the given JSON schema.
- Return type:
dict
Changed in version 0.6.2:
- Removed validation when active_validation is set to False.
This improves performance when validation is not needed.
Changed in version 0.4.2: Removed $schema key from resulting dictionary.