pi_portal.commands.mixins.state

CommandBase mixin to provide configured running state.

class pi_portal.commands.mixins.state.CommandManagedStateMixin[source]

Provide configured state to a CLI command.

load_state(debug, file_path='/opt/venvs/pi-portal/config.json')[source]

Load and configure state.

Parameters:
  • debug (bool) – Enable or disable debug logs.

  • file_path (str, default: '/opt/venvs/pi-portal/config.json') – The path to the file to load.

Return type:

None