akkudoktoreos.server.dash.plan.InstructionCard

akkudoktoreos.server.dash.plan.InstructionCard(instruction: Annotated[PEBCInstruction | PPBCScheduleInstruction | PPBCStartInterruptionInstruction | PPBCEndInterruptionInstruction | OMBCInstruction | FRBCInstruction | DDBCInstruction, FieldInfo(annotation=NoneType, required=True, discriminator='type')], config: SettingsEOS, data: dict | None) Card

Creates a styled instruction card for displaying instruction details.

This function generates a instruction card that is displayed in the UI with various sections such as instruction name, type, description, default value, current value, and error details. It supports both read-only and editable modes.

Parameters:
  • instruction (EnergyManagementInstruction) – The instruction.

  • data (Optional[dict]) – Incoming data containing action and category for processing.

Returns:

A styled Card component containing the instruction details.

Return type:

Card