(self, is_door_blocking: bool = False)
Initialize a CommandStore and its state.
Initialize a CommandStore and its state.
Initialize a CommandStore and its state .
def __init__(self, is_door_blocking: bool = False) -> None:
        """Initialize a CommandStore and its state."""
        self._state = CommandState(
            queue_status=QueueStatus.IMPLICITLY_ACTIVE,
            is_hardware_stopped=False,
            is_door_blocking=is_door_blocking,
            run_result=None,
            running_command_id=None,
            queued_command_ids=OrderedDict(),
            commands_by_id=OrderedDict(),
            errors_by_id={},
        )
def __init__ ( self , is_door_blocking : bool = False ) -> None : self . _state = CommandState ( queue_status = QueueStatus . IMPLICITLY_ACTIVE , is_hardware_stopped = False , is_door_blocking = is_door_blocking , run_result = None , running_command_id = None , queued_command_ids = OrderedDict ( ) , commands_by_id = OrderedDict ( ) , errors_by_id = { } , )