#2912 - removal of the rom_config method as this shouldn't be needed for the actions refactor

This commit is contained in:
Charlie Crane
2024-12-09 09:59:47 +00:00
parent a8fbb002e4
commit 386717fa41
2 changed files with 18 additions and 5 deletions

View File

@@ -32,8 +32,3 @@ class AbstractAction(BaseModel):
def form_request(cls, config: ConfigSchema) -> RequestFormat:
"""Return the action formatted as a request which can be ingested by the PrimAITE simulation."""
pass
@classmethod
def from_config(cls, config: Dict) -> "AbstractAction":
"""Create an action component from a config dictionary."""
return cls(config=cls.ConfigSchema(**config))