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.


CommandTable as a Python dictionary.


ValidateError – The command table does not correspond to the given JSON schema.

Return type:


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.